APIMart
Back to all models

o3 API

OpenAIModel ID o3-2025-04-16Text modelReleased April 16, 2025

Use o3 to check a report’s claims against a chart, find out why a SQL query drops users, or turn an incident timeline into a post-mortem summary.

Max input
200,000 tokens
Max output
100,000 tokens
Input → output
Text, Image → Text
Knowledge cutoff
June 1, 2024
  • Image input
  • Streaming
  • Cached input pricing
  • OpenAI SDK compatible

o3 API use cases

Each use case comes with an illustrative example: source material, a prompt and a hand-written sample answer, not actual model output. Copy the prompt, swap in your own material and try it on o3.

Try o3 with your own material

Check claims against a chart

Give o3 a chart screenshot and the claims from a report, and ask it to judge each claim against the data and suggest a rewrite. Check the numbers against the source data at the end.

Example: Does this chart support the report?

Material

Chart (bar chart, $ thousands)
Q1 1,200 · Q2 1,350 · Q3 1,280 · Q4 1,500
Report
Sales grew every quarter, up 25% for the year.

PromptBased on the chart data, decide whether the sentence from the report holds. Explain where it doesn’t, and give an accurate rewrite.

Sample answer · written by hand to show the reasoning

Not quite. Q3 ($1,280K) is about 5.2% below Q2 ($1,350K), so sales did not grow every quarter. Q4 is 25% above Q1 (1,500 ÷ 1,200 = 1.25), but that compares two quarters, not the full year; the four quarters total $5,330K, and annual growth needs last year’s figure. Suggested rewrite: “Apart from a small dip in Q3, sales rose through the year, with Q4 25% above Q1.”

About the o3 API

  • Math, coding and visual reasoning

    OpenAI says o3 sets a new standard in math, science, coding and visual reasoning, with 20 percent fewer major errors than o1 on difficult real-world tasks; with tool use it reaches 98.4% pass@1 on AIME 2025.

  • Images inside the reasoning

    OpenAI says o3 doesn’t just see an image, it thinks with it; whiteboard photos, textbook diagrams and hand-drawn sketches can be read even when blurry, upside down or low quality.

  • Reasoning tokens billed as output

    Reasoning tokens aren’t returned by the API, but they take up context and are billed as output tokens; OpenAI recommends reserving at least 25,000 tokens for reasoning and output when you start out.

  • o3 API key and access

    You don’t need a separate o3 API key: one APIMart key works for every model. Check the o3 pricing table on this page for current OpenAI o3 API pricing, then call an OpenAI Chat Completions-compatible endpoint with the model ID o3-2025-04-16.

How to call the o3 API

To call o3, you only need an APIMart API key and your existing OpenAI SDK, or send plain HTTP requests.

POST /v1/chat/completions
curl https://api.apimart.ai/v1/chat/completions \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "o3-2025-04-16",
  "messages": [
    {
      "role": "user",
      "content": "Describe how to design a clear API in three sentences."
    }
  ],
  "stream": false
}'

o3 access details

Model IDo3-2025-04-16
Base URLhttps://api.apimart.ai/v1
Endpoint/chat/completions

Common parameters

model
Required
messages
Required
stream
Optional
max_tokens
Optional
temperature
Optional
All request parameters, response fields and error codes

o3 API request parameters

o3 uses the general chat endpoint, POST /v1/chat/completions, with a JSON body. model and messages are required; every other parameter is optional.

ParameterTypeRequiredDescription
modelstringYesModel ID. Use o3-2025-04-16 for this model.
messagesarrayYesConversation messages. Each message has a role (system, user, or assistant) and content. Include earlier messages for multi-turn conversations.
streambooleanNoWhether to stream the output. true returns chunks over SSE, false returns the full response at once. Default: true.
temperaturenumberNoOutput randomness, 0–2. Default: 1.0. Lower values give more deterministic output.
top_pnumberNoNucleus sampling, 0–1. Default: 1.0. Adjust this or temperature, not both.
max_tokensintegerNoMaximum number of tokens to generate for the reply.
frequency_penaltynumberNoFrequency penalty, -2.0 to 2.0. Default: 0. Positive values reduce repeated wording.
presence_penaltynumberNoPresence penalty, -2.0 to 2.0. Default: 0. Positive values encourage new topics.
stopstring | arrayNoUp to 4 stop sequences. Generation stops when any of them appears.
nintegerNoNumber of replies to generate. Default: 1.

Response fields

The response contains the fields below. Token usage is returned in usage, which you can use to check costs.

FieldTypeDescription
idstringUnique identifier for the request.
modelstringThe model that handled the request.
choicesarrayList of replies. Each item contains message (role and content) and finish_reason.
usageobjectToken usage: prompt_tokens, completion_tokens, and total_tokens.

Error codes

Failed requests return an error object with code, message, and type.

StatusTypeMeaning
400invalid_request_errorInvalid request parameters.
401authentication_errorThe API key is invalid or missing.
402payment_requiredInsufficient account balance.
403permission_errorNo permission to access this resource.
429rate_limit_errorToo many requests. Retry later.
500server_errorInternal server error.
502bad_gatewayGateway error. The service is temporarily unavailable.

o3 API pricing

The o3 API is billed by token usage, and prices depend on your membership tier. Prices below are per million tokens; 1 US dollar = 10 credits.

ItemGoldCurrent pricePlatinumDiamondOfficial priceYou save
Input16Credits~$1.615.2Credits~$1.5214.4Credits~$1.4420Credits~$220%
Cached input4Credits~$0.43.8Credits~$0.383.6Credits~$0.365Credits~$0.520%
Output64Credits~$6.460.8Credits~$6.0857.6Credits~$5.7680Credits~$820%

Prices are for reference only. View full pricing

Why call o3 API through APIMart

  • 20% below official pricing

    o3 API pricing is billed by token usage. Gold to Diamond member prices are 20%–28% below OpenAI's official prices, and cached input costs just $0.4 per 1M tokens.

    See membership prices
  • One API key for 500+ models

    o3, the rest of its family and 500+ models from GPT, Claude, Gemini and more share one API key and one account balance. Switching models is just a change to the model parameter.

  • Change two lines of existing code

    If you already use the OpenAI SDK, point base_url at https://api.apimart.ai/v1 and swap in your APIMart API key. Requests and responses keep the same format.

  • Try it online before you code

    Try o3 with your own material in the Playground, no code or setup needed, and integrate once you like the results.

    Open Playground

Which OpenAI model should you choose?

Base prices per 1M tokens (USD). Your o3 API key works for every model in the table; just change the model parameter.

Differences between OpenAI models
Comparisono3 CurrentGPT-4oGPT-4o miniGPT-4o-2024-11-20GPT-4.1GPT-4.1 miniGPT-5GPT-5 miniGPT-5 nanoGPT-5 ProGPT-5 SearchGPT-5.1GPT-5.2GPT-5.2 ProGPT-5.3-CodexGPT-5.4GPT-5.4 miniGPT-5.4 nanoGPT-5.4 ProGPT-5.5GPT-5.6 LunaGPT-5.6 SolGPT-5.6 TerraGPT-6 AstraGPT-6 LunaGPT-6 SolGPT-6.1 SolGPT-6.1 TerraGPT-6.2 AstraGPT-6.2 Sol
Best forDeep reasoning, Visual reasoning, Coding and technical writingText and image input, Function calling and structured outputs, No reasoning step, fast repliesHigh-volume classification and extraction, Text and image input, Low-cost small modelNewest GPT-4o snapshot, Text and image input, No reasoning step, fast repliesInstruction following, Deprecated, 1M-token contextFast and low-cost, Deprecated, 1M-token contextCoding and agents, Deprecated, Reasoning effort minimal to highCost-efficient reasoning, Deprecated, 400K contextFastest and cheapest, Deprecated, ClassificationHard reasoning, Deprecated, Responses APIWeb search in Chat Completions, Searches before every answer, Text in, text outCoding and agents, Deprecated, Text and image inputProfessional work, Reasoning up to xhigh, Text and image inputHard reasoning, More compute per request, Responses APIAgentic coding, 400K context, Responses APICoding and professional work, 1.05M context, Text and image inputCoding and subagents, 400K context, Text and image inputClassification and extraction, Cheapest GPT-5.4 model, Text and image inputHard reasoning, More compute per request, Text and image inputCoding and professional work, 1.05M context, Reasoning from none to xhighHigh-volume tasks, Classification, Data extractionComplex professional work, Coding and debugging, Text and image inputBalanced cost, Support and review, Text and image inputComplex coding, Professional work, ResearchStructured summaries, Classification, Data extractionComplex coding, Agentic workflows, Testing and debuggingComplex coding, Professional documents, Business workflowsVisual reasoning, Drawings and screenshots, WritingComplex coding, Long-document analysis, Professional researchEveryday coding, Agentic tasks, Writing
Input typesText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageTextText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, Image
Max input200,000 tokens128,000 tokens128,000 tokens128,000 tokens1,047,576 tokens1,047,576 tokens272,000 tokens272,000 tokens272,000 tokens272,000 tokens272,000 tokens272,000 tokens272,000 tokens272,000 tokens272,000 tokens922,000 tokens272,000 tokens272,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens
Max output100,000 tokens16,384 tokens16,384 tokens16,384 tokens32,768 tokens32,768 tokens128,000 tokens128,000 tokens128,000 tokens272,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens
Knowledge cutoffJune 1, 2024October 1, 2023October 1, 2023October 1, 2023June 1, 2024June 1, 2024September 30, 2024May 31, 2024May 31, 2024September 30, 2024—September 30, 2024August 31, 2025August 31, 2025August 31, 2025August 31, 2025August 31, 2025August 31, 2025August 31, 2025December 1, 2025February 16, 2026February 16, 2026February 16, 2026April 30, 2026May 18, 2026April 20, 2026April 30, 2026June 1, 2026May 18, 2026June 1, 2026
Input price$1.6$2$0.12$2$1.6$0.32$1$0.2$0.04$12$1$1$1.4$16.8$1.4$2$0.6$0.16$24$4$0.16$3.2$1.6$8$0.08$1.6$1.6$0.8$6.4$1.6
Output price$6.4$8$0.48$8$6.4$1.28$8$1.6$0.32$96$8$8$11.2$134.4$11.2$12$3.6$1$144$24$0.96$16$9.6$40$0.4$8$8$4$32$8

o3 FAQ

What is o3’s knowledge cutoff?

OpenAI’s model page lists a knowledge cutoff of June 1, 2024 for o3. For events or documents newer than that, put the relevant material in the prompt.

What changes when I move from o3 to GPT-6.1 Sol?

Change the model parameter from o3-2025-04-16 to gpt-6.1-sol; the endpoint and API key stay the same. Before switching, re-test your prompts, image inputs and tool flows, check that the parameters you use are supported by both, and compare the two models’ rates in the pricing tables on this site.

How are o3 reasoning tokens billed?

Reasoning tokens aren’t returned by the API, but they take up context and are billed as output tokens. OpenAI recommends reserving at least 25,000 tokens for reasoning and output when you start with reasoning models, then adjusting to your actual usage. For simple Q&A or rewriting, o3 isn’t worth it; use a model that doesn’t reason.

Should I use max_tokens or max_completion_tokens with o3?

Use max_completion_tokens. According to OpenAI’s API reference, max_tokens is deprecated in favor of max_completion_tokens and is not compatible with o-series reasoning models; the max_completion_tokens limit covers both reasoning tokens and the visible answer. The max_tokens shown in this page’s general parameter table and FAQ is the generic endpoint’s wording; when calling o3, use max_completion_tokens instead. o3 also doesn’t support the stop parameter, and from o1 onward developer messages replace system messages.

Can o3 understand images?

Yes. o3 takes image input and returns text. OpenAI says o3 and o4-mini are the first models that integrate images directly into their reasoning; they can read whiteboard photos, textbook diagrams and hand-drawn sketches even when blurry or upside down, which suits charts, screenshots and handwriting. Images take longer reasoning, so leave enough room in max_completion_tokens.

How does o3-2025-04-16 relate to o3?

o3-2025-04-16 is the default snapshot of OpenAI o3; the dated model ID stays pinned to this version. This page covers o3-2025-04-16.

How can I try this model online?

Click Start chatting or Open Playground to visit the existing APIMart Playground. Select o3 in the text category to start exploring.

Which model ID does the o3 API use?

Set model to o3-2025-04-16. Copy the exact ID from the page heading or the integration details panel.

Is it compatible with the OpenAI SDK?

You can keep the OpenAI SDK. Set base_url to https://api.apimart.ai/v1, provide your APIMart API key, and use the model ID on this page.

What is the context window of o3?

On APIMart, o3 accepts up to 200,000 input tokens per request. Your prompt, earlier messages, and file content all count toward it.

How many tokens can it output at once?

o3 can output up to 100,000 tokens in a single reply. Use the max_tokens parameter to set a lower limit.

How much does the o3 API cost?

The o3 API on APIMart is billed by token, and prices depend on your membership tier. Gold: $1.6 per million input tokens and $6.4 per million output tokens. Diamond: $1.44 per million input tokens and $5.76 per million output tokens. Prices may change; the pricing page has the current rates.

Does it support streaming?

Yes. The general chat endpoint streams over SSE by default. Set stream to false to receive the complete response at once.

How do I get an API key?

Sign in to APIMart and create a key on the API Keys page, then send it in the Authorization: Bearer header. The same key also works for other models on the platform.