Fast reasoning model optimized for coding and STEM tasks. Provides strong reasoning at lower cost than o1.
| Token Type | Credits | USD Equivalent |
|---|---|---|
| Input Tokens | 3,000 | $3.00 |
| Output Tokens | 12,000 | $12.00 |
* 1 credit โ $0.001 (actual charges may vary based on usage)
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{
"model": "o1-mini",
"input": {
"model": "o1-mini",
"messages": [
{
"role": "user",
"content": "Review this code and suggest improvements:\n\ndef fib(n):\n if n <= 1: return n\n return fib(n-1) + fib(n-2)"
}
]
}
}'| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
messages | array | Yes | - | Array of message objects |
max_completion_tokens | integer | No | - | Maximum tokens for completion |
Review and improve code
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{
"model": "o1-mini",
"input": {
"model": "o1-mini",
"messages": [
{
"role": "user",
"content": "Review this code and suggest improvements:\n\ndef fib(n):\n if n <= 1: return n\n return fib(n-1) + fib(n-2)"
}
]
}
}'POST /llm/openai/v1/chat/completions