OpenAI
OpenPike sends openai/... models to OpenAI’s API with your own OpenAI key, on the chat completions and Responses endpoints.
Your key
Section titled “Your key”Create a key at platform.openai.com/api-keys and add it on the Providers page.
Calling OpenAI models
Section titled “Calling OpenAI models”- Endpoints:
POST /v1/chat/completionsandPOST /v1/responses(OpenAI’s Responses API, used by Codex CLI). - Model names:
openai/plus OpenAI’s model ID, for exampleopenai/gpt-5.4-minioropenai/gpt-4o-mini. - SDK: the OpenAI SDK with
base_urlset tohttps://api.openpike.dev/v1. See OpenAI SDK.
Quirks
Section titled “Quirks”- Chat completions and Responses only. OpenPike does not serve Assistants, embeddings, images or audio endpoints. On
/v1/responses,background: trueis rejected, and the other Responses routes (retrieve, cancel, input items) are not served. - Hosted tools. Web search, file search and code interpreter on
/v1/responseswork, but OpenAI bills them per call on top of tokens, and OpenPike’s cost covers tokens only. - Usage on streams. For streamed chat completions OpenPike sets
stream_options.include_usage, so the last chunk carries the token counts. Responses streams carry them in the finalresponse.completedevent. - Long prompts. Some models charge more for long prompts; the table shows the threshold. OpenAI’s Batch, Flex and Priority prices are not applied.
Prices
Section titled “Prices”| Model | Input | Cached input | Output | Notes | As of |
|---|---|---|---|---|---|
openai/gpt-6-astra | $10.00 | $1.00 | $50.00 | Above 272,000 prompt tokens: $20.00 in, $75.00 out | 2026-11-22 |
openai/gpt-6.1-sol | $2.00 | $0.10 | $10.00 | Above 272,000 prompt tokens: $4.00 in, $15.00 out | 2026-11-22 |
openai/gpt-6.1-terra | $1.00 | $0.050 | $5.00 | Above 272,000 prompt tokens: $2.00 in, $7.50 out | 2026-11-22 |
openai/gpt-6-luna | $0.10 | $0.010 | $0.50 | Above 272,000 prompt tokens: $0.20 in, $0.75 out | 2026-11-22 |
openai/gpt-6-sol | $2.00 | $0.20 | $10.00 | Above 272,000 prompt tokens: $4.00 in, $15.00 out | 2026-11-22 |
openai/gpt-5.6-sol | $4.00 | $0.40 | $20.00 | Above 272,000 prompt tokens: $8.00 in, $30.00 out | 2026-11-22 |
openai/gpt-5.6-terra | $2.00 | $0.20 | $12.00 | Above 272,000 prompt tokens: $4.00 in, $18.00 out | 2026-11-22 |
openai/gpt-5.6-luna | $0.20 | $0.020 | $1.20 | Above 272,000 prompt tokens: $0.40 in, $1.80 out | 2026-11-22 |
openai/gpt-5.5 | $5.00 | $0.50 | $30.00 | Above 272,000 prompt tokens: $10.00 in, $45.00 out | 2026-11-22 |
openai/gpt-5.5-pro | $30.00 | - | $180.00 | Above 272,000 prompt tokens: $60.00 in, $270.00 out. No cached input rate is listed, so cached tokens are billed at the input rate. | 2026-11-22 |
openai/gpt-5.4 | $2.50 | $0.25 | $15.00 | Above 272,000 prompt tokens: $5.00 in, $22.50 out | 2026-11-22 |
openai/gpt-5.4-pro | $30.00 | - | $180.00 | Above 272,000 prompt tokens: $60.00 in, $270.00 out. No cached input rate is listed, so cached tokens are billed at the input rate. | 2026-11-22 |
openai/gpt-5.4-mini | $0.75 | $0.075 | $4.50 | - | 2026-11-22 |
openai/gpt-5.4-nano | $0.20 | $0.020 | $1.25 | - | 2026-11-22 |
openai/gpt-5.2 | $1.75 | $0.17 | $14.00 | - | 2026-11-22 |
openai/gpt-5.2-pro | $21.00 | - | $168.00 | No cached input rate is listed, so cached tokens are billed at the input rate. | 2026-11-16 |
openai/gpt-5.1 | $1.25 | $0.13 | $10.00 | - | 2026-11-22 |
openai/gpt-5 | $1.25 | $0.13 | $10.00 | - | 2026-11-22 |
openai/gpt-5-mini | $0.25 | $0.025 | $2.00 | - | 2026-11-22 |
openai/gpt-5-nano | $0.050 | $0.005 | $0.40 | - | 2026-11-22 |
openai/gpt-5-pro | $15.00 | - | $120.00 | No cached input rate is listed, so cached tokens are billed at the input rate. | 2026-11-16 |
openai/gpt-4.1 | $2.00 | $0.50 | $8.00 | - | 2026-11-22 |
openai/gpt-4.1-mini | $0.40 | $0.10 | $1.60 | - | 2026-11-22 |
openai/gpt-4o | $2.50 | $1.25 | $10.00 | - | 2026-11-22 |
openai/gpt-4o-mini | $0.15 | $0.075 | $0.60 | - | 2026-11-22 |
openai/o3-pro | $20.00 | - | $80.00 | No cached input rate is listed, so cached tokens are billed at the input rate. | 2026-11-16 |
openai/o3 | $2.00 | $0.50 | $8.00 | - | 2026-11-22 |
USD per 1M tokens, from https://developers.openai.com/api/docs/pricing.