GenMagic Chat Completions API

The Chat Completions API from GenMagic — 1 operation(s) for chat completions.

GitHub OpenAPI

Operations 1

POST /api/v1/chat/completions OpenAI-compatible chat/text completion #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/genmagic:genmagic-chat-completions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

genmagic-chat-completions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: GenMagic Chat API
  version: 1.0.0
  description: 'GenMagic is one studio for every generative AI model. Turn a single prompt into text, images, video, audio, music, or code, and route it to the best model automatically. New models the day they launch.


    OpenAI-compatible REST API plus a remote Model Context Protocol server at /api/mcp (Streamable HTTP, protocol 2025-06-18). Authenticate with an API key minted at https://genmagic.co/get-api-key; the model catalog (GET /api/v1/models) also answers without one. Billed pay-as-you-go against a prepaid USD balance; cost and remaining balance are returned in response headers.'
servers:
- url: https://genmagic.co
security:
- bearerAuth: []
tags:
- name: Chat Completions
paths:
  /api/v1/chat/completions:
    post:
      operationId: createChatCompletion
      summary: OpenAI-compatible chat/text completion
      description: Point any OpenAI SDK at this base URL. Routes the messages to the selected model through GenMagic, billed against the key's real USD balance at the model's price in /api/v1/models (cached input and long-context prompts bill at the cache and tier prices listed there). The request body is forwarded to the model unchanged, so every parameter in the model's supported_parameters works as sent (temperature, tools, response_format, seed, ...). Streams with server-sent events when stream=true. When the key owner has Brand personalization on, a brand system message is prepended automatically.
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Success.
          headers:
            X-RateLimit-Limit:
              schema:
                type: string
              description: The key's request quota for the current rate-limit window.
            X-RateLimit-Remaining:
              schema:
                type: string
              description: Requests left for this key in the current rate-limit window.
            X-RateLimit-Reset:
              schema:
                type: string
              description: Seconds until the current rate-limit window resets.
            X-Credits-Remaining:
              schema:
                type: string
              description: The key owner's prepaid balance in US cents remaining after this call. Omitted when the balance cannot be read.
        '401':
          description: 'authentication_error: missing or invalid API key.'
        '402':
          description: 'insufficient_quota: credit balance would go negative.'
        '429':
          description: 'rate_limit_error: over 300 requests/minute for this key.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - messages
              properties:
                model:
                  type: string
                  description: Model id to use. Omit to use the text default. Call /api/v1/models to list ids.
                messages:
                  type: array
                  items:
                    type: object
                  description: OpenAI-style messages array [{ role, content }]; supports multimodal content parts.
                stream:
                  type: boolean
                  description: Stream tokens as server-sent events. Defaults to false.
                reasoning_effort:
                  type: string
                  description: Thinking effort for a reasoning model, one of the model's capabilities.reasoning_efforts (for example low, medium, high).
                reasoning:
                  type: object
                  description: 'Object form of the thinking controls: { effort, enabled, max_tokens }. enabled: false is refused when the model''s capabilities.reasoning_mandatory is true.'
      tags:
      - Chat Completions
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'GenMagic API key in the form gm_live_..., sent as Authorization: Bearer <key>. Also accepted as x-api-key.'