Ultra-fast and lightweight variant of GPT-5. Designed for high-throughput, low-latency applications with a 1M token context window and 32K output tokens at minimal cost.
Copy usage instructions for Claude, ChatGPT, or other AI
| Token Type | Credits | USD Equivalent |
|---|---|---|
| Input Tokens | 100 | $0.10 |
| Output Tokens | 800 | $0.80 |
| Cached Tokens | 25 | $0.03 |
* 1 credit โ $0.001 (actual charges may vary based on usage)
curl -X POST "https://api.core.today/llm/openai/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer cdt_your_api_key" \
-d '{
"model": "gpt-5-nano",
"messages": [
{
"role": "system",
"content": "Classify the following customer message into one of these categories: billing, technical, general, feedback. Respond with only the category name."
},
{
"role": "user",
"content": "I was charged twice for my subscription last month and need a refund."
}
],
"max_completion_tokens": 50
}'| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
messages | array | Yes | - | Array of message objects with role and content |
model | string | Yes | gpt-5-nano | Model identifier |
max_completion_tokens | integer | No | 4096 | Maximum tokens in response (up to 32768). Note: use max_completion_tokens, not max_tokens |
reasoning_effort | string | No | medium | Reasoning effort level: low, medium, or high |
stream | boolean | No | false | Enable Server-Sent Events streaming |
response_format | object | No | - | Format of response: { type: 'json_object' } for JSON mode |
tools | array | No | - | List of tools (functions) the model can call |
High-speed text classification with GPT-5 Nano
curl -X POST "https://api.core.today/llm/openai/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer cdt_your_api_key" \
-d '{
"model": "gpt-5-nano",
"messages": [
{
"role": "system",
"content": "Classify the following customer message into one of these categories: billing, technical, general, feedback. Respond with only the category name."
},
{
"role": "user",
"content": "I was charged twice for my subscription last month and need a refund."
}
],
"max_completion_tokens": 50
}'Fast structured data extraction
curl -X POST "https://api.core.today/llm/openai/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer cdt_your_api_key" \
-d '{
"model": "gpt-5-nano",
"messages": [
{
"role": "system",
"content": "Extract key information from the text and return as JSON."
},
{
"role": "user",
"content": "Meeting scheduled with John Smith from Acme Corp on March 15, 2026 at 2:00 PM in Conference Room B to discuss Q1 budget review."
}
],
"response_format": {
"type": "json_object"
},
"max_completion_tokens": 500
}'POST /llm/openai/v1/chat/completions