Providers / OpenAI (GPT)
OpenAI (GPT)
OpenAI is a US AI lab and the maker of the GPT models. Its current generation is GPT-6, sold in named tiers: Astra at the top, Sol for general work and Luna as the low-cost tier. GPT-6.1 Sol came a week after GPT-6 Sol. The earlier GPT-5.6 generation has Sol, Terra and Luna tiers, and GPT-5.5, GPT-5.5 Pro and GPT-5.4 are older models.
Models
USD per 1M tokens · prices as of 2026-11-21
| Model | Best for | Input | Output | Context |
|---|---|---|---|---|
| GPT-5.4 | $2.8787 | $17.2723 | 266K | |
| GPT-5.5 | $5.7574 | $34.5445 | 266K | |
| GPT-5.6 Luna | $0.2303 | $1.3818 | 266K | |
| GPT-5.6 Sol | $4.6059 | $23.0297 | 266K | |
| GPT-5.6 Terra | Coding agent, everyday work | $2.3030 | $13.8178 | 266K |
| GPT-6 Astra | Hardest tasks, cost second | $11.5148 | $57.5742 | 266K |
| GPT-6 Luna | Quick edits, autocomplete-style tasks · Cheap bulk work | $0.1151 | $0.5757 | 266K |
| GPT-6 Sol | Coding sessions with reasoning on or off · Long context | $2.3030 | $11.5148 | 266K |
| GPT-6.1 Sol | Coding agent, hard problems · Long context | $2.3030 | $11.5148 | 266K |
| GPT-5.5 Pro | One hard problem, quality over speed | Price coming soon | 1.05M | |
Which model for which job
The GPT models here support tool calling and offer fine-grained reasoning effort. They read text and images, and GPT-6.1 Sol and GPT-6 Luna also list files. OpenAI lists a context window of about 1M tokens and up to 128K tokens of output for every model here.
| Job | Use | Input / output per 1M | Why |
|---|---|---|---|
| Coding agent, hard problems | GPT-6.1 Sol | $2.3030 / $11.5148 | Reasoning always on; OpenAI’s main pick for hard, multi-step coding work |
| Coding agent, everyday work | GPT-5.6 Terra | $2.3030 / $13.8178 | Mid tier; you can turn reasoning off to save tokens |
| Coding sessions with reasoning on or off | GPT-6 Sol | $2.3030 / $11.5148 | Effort from none to max |
| Quick edits, autocomplete-style tasks | GPT-6 Lunawith low or no reasoning | $0.1151 / $0.5757 | Low-priced tier |
| Long context | GPT-6 SolGPT-6.1 Sol | $2.3030 / $11.5148$2.3030 / $11.5148 | About 1M tokens on both; see the long-prompt note below |
| Cheap bulk work | GPT-6 Lunawith the Batch API | $0.1151 / $0.5757 | Low per-token price, runs off-peak |
| Hardest tasks, cost second | GPT-6 Astra | $11.5148 / $57.5742 | Top model of the GPT-6 generation |
| One hard problem, quality over speed | GPT-5.5 Pro | Price coming soon | Thinks harder, but slower; Responses and Batch APIs only |
Data handling
What Yunshu does
Prompts aren’t stored by default. Batches are the one exception: batch inputs and results are kept for 7 days after the batch finishes, then deleted. An organisation can turn on zero retention, which refuses batches as well.
Pricing notes
- Yunshu’s own cache. Exact repeats of a request are answered from our cache and not charged.
Use it in your coding tool
Paste these settings to use GPT-5.4. Swap in any OpenAI model ID from the table above.
export ANTHROPIC_BASE_URL=https://api.yunshurouter.com
export ANTHROPIC_AUTH_TOKEN=YOUR_YUNSHU_KEY
export ANTHROPIC_MODEL=gpt-5.4
export CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1OpenAI API Key: YOUR_YUNSHU_KEY
Override OpenAI Base URL: https://api.yunshurouter.com/v1
Add model: gpt-5.4 (then Verify)model = "gpt-5.4"
model_provider = "yunshu"
model_context_window = 272384
[model_providers.yunshu]
name = "Yunshu Router"
base_url = "https://api.yunshurouter.com/v1"
env_key = "YUNSHU_API_KEY"
wire_api = "responses"Base URL: https://api.yunshurouter.com/v1
API Key: YOUR_YUNSHU_KEY
Model ID: gpt-5.4Run these in your shell before starting Claude Code, or put them in ~/.claude/settings.json (see the guide). No /v1 in the address: Claude Code adds it. The last line stops Claude Code sending fields only Anthropic models accept. Full guide →
In Cursor Settings → Models: paste the key under OpenAI, turn on the base URL override and keep the /v1. Then pick the model in the chat panel. Full guide →
Add this to ~/.codex/config.toml and set YUNSHU_API_KEY to your key. Codex sends the whole conversation each turn; we don't store responses. Full guide →
Set API Provider to OpenAI Compatible. Then set the context window and prices from the model page, so Cline's cost estimate matches your bill. Full guide →
Questions
Is there a GPT API without an OpenAI account?
Yes. A Yunshu Router key calls GPT models through the OpenAI Chat Completions or Responses API. You pay from a prepaid balance in USD, CNY or SGD, topped up by card.
How much does GPT-6.1 Sol cost per token?
Other GPT models have their own price on
their model pages. GET /v1/generation?id=<id> returns the exact cost of any single request.
Can I use GPT models in the Codex CLI with Yunshu?
Yes, through our Responses endpoint. It is stateless: previous_response_id is refused
and only function tools are passed through. See the Codex guide.
What is the difference between Sol, Terra and Luna?
They are OpenAI’s tier names. Sol is the stronger general model, Terra the mid tier (in GPT-5.6) and Luna the low-cost tier. All list about 1M tokens of context.
Does Yunshu support OpenAI embeddings or image generation?
Image generation, yes: GPT Image 2, GPT Image 2.5 Flare and GPT Image 2.5 Sunburst. Embeddings, no.