Create a response
OpenAI Responses format, non-streaming and streaming (SSE).
Works with models that support the Responses API; the endpoints each model supports are listed on the model square. This is the endpoint Codex CLI uses.
BearerAuthAuthorizationBearer <token>Authenticate with an API key.
Format: Authorization: Bearer sk-xxxxxx. Create keys on the API Keys page of the console (https://ai.myaiexp.com/keys).
application/json- body
model*stringModel ID, for example your-model-id. Replace it with a model ID from the model square (https://ai.myaiexp.com/pricing), or call GET /v1/models to list the models your key can use.
input?|array<>Input: a string or an array of messages
instructions?stringmax_output_tokens?integertemperature?numbertop_p?numberstream?booleantools?array<>tool_choice?string|reasoning?previous_response_id?stringtruncation?string"auto""disabled"Response created
application/json- response
id?stringobject?stringcreated_at?integerstatus?string"completed""failed""in_progress""incomplete"model?stringoutput?array<>usage?curl -X POST 'https://ai.myaiexp.com/v1/responses' \ -H 'Content-Type: application/json' \ -d '{ "model": "your-model-id", "input": "Introduce yourself in one sentence", "max_output_tokens": 600}'{ "id": "resp_deaedc17-0a80-9bbf-bab3-9aa18d893838", "object": "response", "created_at": 1791367100, "model": "your-model-id", "status": "completed", "output": [ { "id": "msg_ffe2ee94", "type": "message", "role": "assistant", "status": "completed", "content": [ { "type": "output_text", "text": "I'm an AI assistant." } ] } ], "usage": { "input_tokens": 52, "output_tokens": 18, "total_tokens": 70 }}Create a chat completion POST
Creates a model response for the given conversation, compatible with OpenAI Chat Completions. Supports streaming (`stream: true`, SSE), function calling (`tools`) and image input. See `GET /v1/models` or the [model square](https://ai.myaiexp.com/pricing) for the available models.
Create a message POST
Claude-native Messages format, used by the Anthropic SDK and Claude Code. Authenticate with `Authorization: Bearer <Key>` or `x-api-key: <Key>`. `max_tokens` is required. Works with models that support the Claude-native format; the endpoints each model supports are listed on the [model square](https://ai.myaiexp.com/pricing). With the Anthropic SDK, set the base URL to `https://ai.myaiexp.com` without `/v1`.
This service is provided for learning and research purposes only. Please follow each model provider's usage policies.