Text Series
GPT
- OpenAI GPT models, callable with the Chat Completions API or the Responses API.
- Base URL
https://api.apiko.app/v1. The model list below is what the catalog sells today;GET /v1/modelsreturns the models your key can call.
POST
Authorizations
Send
Authorization: Bearer <API_KEY>. Create keys in Console → API Keys.Routes
string
POST /v1/chat/completions— OpenAI-compatible Chat Completions; JSON by default, SSE with"stream": truePOST /v1/responses— OpenAI Responses API, used by Codex CLI and the OpenAI Agents SDK
Body
application/json
model
enum<string>required
Public model id. Use it exactly as listed.
Available options:
gpt-5.4-mini, gpt-5.6-luna, gpt-5.6-sol, gpt-5.6-terra, gpt-6-astra, gpt-6-sol, gpt-6.1-sol, gpt-6.1-terra, gpt-6.2-astra, gpt-6.2-solExample:
"gpt-6.1-sol"messages
object[]required
Conversation messages in the Chat Completions format.
POST /v1/responses takes input instead; sending messages there returns HTTP 400 input is required.stream
booleandefault:false
Set to
true for Server-Sent Events. On Chat Completions, add "stream_options": {"include_usage": true} to receive token usage in the final event.other fields
object
Tools, response formats, temperature and reasoning controls follow the upstream API of the route you call.
Reasoning level: send
reasoning_effort (for example low or high) on Chat Completions, or "reasoning": {"effort": "low"} on Responses. An unsupported value returns HTTP 400.Thinking tokens count toward
max_tokens (max_output_tokens on Responses). A small limit can end the response before any visible text or JSON is complete; leave room for the answer. A very small limit can return no text while still billing more output tokens than the limit.Responses API limitation
previous_response_id
no effect
previous_response_id is accepted but has no effect: conversations are not stored, so the model does not see earlier turns. Send the complete conversation in input with every request.Response
200 - application/json
JSON response
object
Chat Completions returns
choices[0].message.content and usage.Responses returns the Responses shape: the answer is in
output (SDKs also expose output_text).model in the response may be a versioned upstream name rather than the id you sent; log and reconcile by the id you sent.SSE response
text/event-stream
For Chat Completions streams, read events until
data: [DONE] and append choices[0].delta.content from each event whose choices is non-empty. With include_usage, usage arrives in a separate final event after the one with finish_reason, and that event has an empty choices.