Skip to content

OpenAI

OpenPike sends openai/... models to OpenAI’s API with your own OpenAI key, on the chat completions and Responses endpoints.

Create a key at platform.openai.com/api-keys and add it on the Providers page.

  • Endpoints: POST /v1/chat/completions and POST /v1/responses (OpenAI’s Responses API, used by Codex CLI).
  • Model names: openai/ plus OpenAI’s model ID, for example openai/gpt-5.4-mini or openai/gpt-4o-mini.
  • SDK: the OpenAI SDK with base_url set to https://api.openpike.dev/v1. See OpenAI SDK.
  • Chat completions and Responses only. OpenPike does not serve Assistants, embeddings, images or audio endpoints. On /v1/responses, background: true is rejected, and the other Responses routes (retrieve, cancel, input items) are not served.
  • Hosted tools. Web search, file search and code interpreter on /v1/responses work, 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 final response.completed event.
  • Long prompts. Some models charge more for long prompts; the table shows the threshold. OpenAI’s Batch, Flex and Priority prices are not applied.
ModelInputCached inputOutputNotesAs of
openai/gpt-6-astra$10.00$1.00$50.00Above 272,000 prompt tokens: $20.00 in, $75.00 out2026-11-22
openai/gpt-6.1-sol$2.00$0.10$10.00Above 272,000 prompt tokens: $4.00 in, $15.00 out2026-11-22
openai/gpt-6.1-terra$1.00$0.050$5.00Above 272,000 prompt tokens: $2.00 in, $7.50 out2026-11-22
openai/gpt-6-luna$0.10$0.010$0.50Above 272,000 prompt tokens: $0.20 in, $0.75 out2026-11-22
openai/gpt-6-sol$2.00$0.20$10.00Above 272,000 prompt tokens: $4.00 in, $15.00 out2026-11-22
openai/gpt-5.6-sol$4.00$0.40$20.00Above 272,000 prompt tokens: $8.00 in, $30.00 out2026-11-22
openai/gpt-5.6-terra$2.00$0.20$12.00Above 272,000 prompt tokens: $4.00 in, $18.00 out2026-11-22
openai/gpt-5.6-luna$0.20$0.020$1.20Above 272,000 prompt tokens: $0.40 in, $1.80 out2026-11-22
openai/gpt-5.5$5.00$0.50$30.00Above 272,000 prompt tokens: $10.00 in, $45.00 out2026-11-22
openai/gpt-5.5-pro$30.00-$180.00Above 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.00Above 272,000 prompt tokens: $5.00 in, $22.50 out2026-11-22
openai/gpt-5.4-pro$30.00-$180.00Above 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.00No 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.00No 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.00No 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.