Fast and efficient variant of GPT-5. Delivers strong performance across reasoning, coding, and creative tasks with a 1M token context window and 32K output tokens, at a fraction of the cost of GPT-5.
Copy usage instructions for Claude, ChatGPT, or other AI
| Token Type | Credits | USD Equivalent |
|---|---|---|
| Input Tokens | 500 | $0.50 |
| Output Tokens | 4,000 | $4.00 |
| Cached Tokens | 125 | $0.13 |
* 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-mini",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant. Be concise and clear."
},
{
"role": "user",
"content": "Explain the difference between REST and GraphQL APIs, including when to use each."
}
],
"max_completion_tokens": 2000
}'| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
messages | array | Yes | - | Array of message objects with role and content |
model | string | Yes | gpt-5-mini | 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 |
Efficient general-purpose conversation with GPT-5 Mini
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-mini",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant. Be concise and clear."
},
{
"role": "user",
"content": "Explain the difference between REST and GraphQL APIs, including when to use each."
}
],
"max_completion_tokens": 2000
}'Debug code efficiently with GPT-5 Mini
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-mini",
"messages": [
{
"role": "system",
"content": "You are an expert debugger. Find and fix bugs in the provided code."
},
{
"role": "user",
"content": "This Python function should return the nth Fibonacci number but it's running too slowly for large n. Optimize it:\n\ndef fib(n):\n if n <= 1:\n return n\n return fib(n-1) + fib(n-2)"
}
],
"max_completion_tokens": 2000
}'POST /llm/openai/v1/chat/completions