/TEXT/gpt-4o
Chat
OpenAI

GPT-4o API

OpenAI GPT-4o for chat, writing, and text analysis.

Starting at

$3

input price per 1M tokens

3 token price options

GPT-4o API pricing

OptionPrice per 1M tokens
input$3
output$12
cacheRead$1.5
1curl -X POST https://api.api-stock.com/api/v1/chat/completions \
2 -H "Authorization: Bearer $API_STOCK_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "model": "gpt-4o",
6 "messages": [
7 {
8 "role": "user",
9 "content": "A cinematic shot of a city at dusk"
10 }
11 ]
12 }'

Frequently asked questions

How much does GPT-4o cost?

GPT-4o starts at $3 per 1M input tokens on API Stock. The final charge depends on the selected settings.

When was GPT-4o released?

GPT-4o was released on May 13, 2024 and is available through API Stock.

How do I get an API key for GPT-4o?

Create an account and API key on API Stock, then fund your balance. The same key works with GPT-4o and other catalog models.

How do I call the GPT-4o API?

Send a POST request to https://api.api-stock.com/api/v1/chat/completions with your API key and the model "gpt-4o", using the openai-compatible request format shown in the quick start above.

What happens if a GPT-4o request fails?

API Stock automatically retries the request on a reserve provider. If every provider fails, the charge is refunded to your balance.

Can I use GPT-4o with the same API key as other models?

Yes. Use your API Stock API key and balance for GPT-4o and other catalog models.