OpenRouterLLMAvailable now
openai/gpt-5-mini
openai/gpt-5-mini is an LLM tool from OpenRouter that runs in the background and returns text and structured JSON. Pay as you go from $0.000000325 per token, with one API key.
Try itfrom $0.000000325 / token
Pricing
Up to $0.010662 per run at the default inputs. $0.325 per 1M input tokens, $2.60 per 1M output tokens.
Limits
- Runs
- In the background
- Returns
- text, json
- Longest queue wait
- 3600s
- Run deadline
- 1800s
- Largest inline input
- 1024 KB
- Largest input file
- 500 MB
- Largest output
- 4768 MB
- Outputs per run
- 16
Input
| Field | Kind | Default | Description |
|---|---|---|---|
messages required | JSON | — | The conversation so far, oldest first. |
seed | number (whole) | — | |
stop | JSON | — | |
min_p | number | — | |
tools | JSON | — | |
top_k | number (whole) | — | |
top_p | number | — | |
logprobs | true or false | — | |
reasoning | JSON | — | Reasoning effort; reasoning tokens count toward max_tokens. |
max_tokens | number (whole) 1 to … | — | The most output tokens to generate. |
temperature | number | — | |
tool_choice | JSON | — | |
top_logprobs | number (whole) | — | |
response_format | JSON | — | |
presence_penalty | number | — | |
frequency_penalty | number | — | |
repetition_penalty | number | — | |
parallel_tool_calls | true or false | — |
Same request in code
curl https://api.spiral.ai/v1/runs \
-H "Authorization: Bearer $SPIRAL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"provider": "openrouter",
"model": "openai/gpt-5-mini",
"input": {
"messages": {}
}
}'