LinkAGI Model API OpenAI compatible API
OpenAI-compatible Chat Completions and Responses routes.
OpenAI-compatible Chat Completions and Responses routes.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/linkagi-model-api:linkagi-model-api-openai-compatible-api"
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.
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: 3.2.0
info:
title: LinkAGI OpenAI compatible API
version: '2026-08-04'
description: LinkAGI AI API relay. Model availability and pricing change by route and pool; copy current model IDs from the live marketplace before sending a paid request.
termsOfService: https://api.linktoagi.com/user-agreement
license:
name: LinkAGI API Terms
url: https://api.linktoagi.com/user-agreement
contact:
name: LinkAGI Support
url: https://docs.linktoagi.com/about.html#support
email: linktoagi@163.com
x-linkagi-evidence:
checked: '2026-08-04'
verified:
- 'OpenAI Chat Completions: one authenticated HTTP 200 call using claude-opus-4-6 on 2026-08-03'
- 'OpenAI Responses: one authenticated HTTP 200 call using gpt-5.6-sol on 2026-08-04'
notVerified:
- Authenticated model listing
- Native Anthropic Messages compatibility
- Gemini generateContent compatibility
- Streaming and tool calling
- Client-specific integrations
servers:
- url: https://api.linktoagi.com
description: Production API
tags:
- name: OpenAI Compatible
description: OpenAI-compatible Chat Completions and Responses routes.
paths:
/v1/chat/completions:
post:
operationId: createChatCompletion
summary: Create a chat completion
description: 'Narrow public evidence: one non-streaming HTTP 200 call using claude-opus-4-6 on 2026-08-03. This does not establish long-term availability, streaming, tools, or compatibility for every model.'
tags:
- OpenAI Compatible
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ChatCompletionRequest'
example:
model: copy-a-current-chat-model-id
messages:
- role: user
content: 'Reply with: LinkAGI API ok'
stream: false
max_tokens: 32
responses:
'200':
description: Chat completion returned by the selected route.
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
/v1/responses:
post:
operationId: createResponse
summary: Create an OpenAI Responses-compatible response
description: 'Narrow public evidence: one non-streaming HTTP 200 call using gpt-5.6-sol on 2026-08-04. This does not establish long-term availability, streaming, tools, or compatibility for every model.'
tags:
- OpenAI Compatible
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseRequest'
example:
model: gpt-5.6-sol
input: 'Reply with: LinkAGI Responses ok'
stream: false
max_output_tokens: 32
responses:
'200':
description: Response returned by the selected route.
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
components:
schemas:
ResponseRequest:
type: object
properties:
model:
type: string
input: {}
stream:
type: boolean
default: false
max_output_tokens:
type: integer
minimum: 1
required:
- model
- input
additionalProperties: true
ChatCompletionRequest:
type: object
properties:
model:
type: string
messages:
type: array
items:
$ref: '#/components/schemas/ChatMessage'
stream:
type: boolean
default: false
max_tokens:
type: integer
minimum: 1
required:
- model
- messages
additionalProperties: true
ChatMessage:
type: object
properties:
role:
type: string
enum:
- system
- developer
- user
- assistant
- tool
content: {}
required:
- role
- content
additionalProperties: true
responses:
BadRequest:
description: Invalid body, model ID, group, or unsupported request field.
Unauthorized:
description: Missing, invalid, expired, disabled, or unauthorized API key.
RateLimited:
description: Client, group, model, route, or upstream limit reached.
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: API key
anthropicApiKey:
type: apiKey
in: header
name: x-api-key
geminiApiKey:
type: apiKey
in: header
name: x-goog-api-key
externalDocs:
description: LinkAGI documentation
url: https://docs.linktoagi.com/?utm_source=openapi&utm_medium=developer_tool&utm_campaign=ecosystem_20260804&utm_content=external_docs
x-provenance:
method: harvested
publisher: LinkAGI Model API
source: https://raw.githubusercontent.com/16871233/linkagi-api-starter/main/openapi/linkagi.openapi.json
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)