gpt-4o-2024-05-13 API · AIAdapter

gpt-4o-2024-05-13 is available through AIAdapter’s OpenAI-compatible unified API. Vendor segment: openai. Call with your AIAdapter API key against https://www.aiadapter.com/v1.

Цены

Billed: $5.00 / 1M input tokens · $15.00 / 1M output tokens. Official: —. The Billed column is the gateway price per 1M tokens. It is not the official price multiplied by the quota ratio. 15% applies only when you top up the wallet.

Specs

Model IDgpt-4o-2024-05-13
Vendoropenai
CompatibilityOpenAI-compatible API

Доступ по API

Вызывайте модель через единый API AIAdapter. /docs#text

curl

curl https://www.aiadapter.com/v1/chat/completions -H "Authorization: Bearer $AIADAPTER_API_KEY" -H "Content-Type: application/json" -d '{"model":"gpt-4o-2024-05-13","messages":[{"role":"user","content":"Hello"}]}'

Python

from openai import OpenAI
client = OpenAI(base_url="https://www.aiadapter.com/v1", api_key="...")
client.chat.completions.create(model="gpt-4o-2024-05-13", messages=[{"role":"user","content":"Hello"}])

Node.js

import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://www.aiadapter.com/v1", apiKey: process.env.AIADAPTER_API_KEY });
await client.chat.completions.create({ model: "gpt-4o-2024-05-13", messages: [{ role: "user", content: "Hello" }] });

FAQ

What is the model ID?

gpt-4o-2024-05-13

How do I get an API key?

Create an account, open Console → Keys, then use Authorization: Bearer.

Where is pricing?

See Pricing and the rate above. Each call adds a 15% service fee on its discounted cost.

OpenAI compatible?

Yes. Point the OpenAI SDK at https://www.aiadapter.com/v1.

Docs · Model Marketplace · Get API Key · Playground