gpt-4o-mini-tts API · AIAdapter
gpt-4o-mini-tts is available through AIAdapter’s OpenAI-compatible unified API. Vendor segment: openai. Call with your AIAdapter API key against https://api.aiadapter.com/v1.
定價
Billed: $75.00 / 1M input tokens · $1500.00 / 1M output tokens. Official: —. Each call adds 15% on the discounted cost (not stacked again on this rate).
Specs
| Model ID | gpt-4o-mini-tts |
|---|---|
| Vendor | openai |
| Compatibility | OpenAI-compatible API |
API 接取
透過 AIAdapter 統一 API 呼叫該模型。 /docs#audio
curl
curl https://api.aiadapter.com/v1/chat/completions -H "Authorization: Bearer $AIADAPTER_API_KEY" -H "Content-Type: application/json" -d '{"model":"gpt-4o-mini-tts","messages":[{"role":"user","content":"Hello"}]}'Python
from openai import OpenAI
client = OpenAI(base_url="https://api.aiadapter.com/v1", api_key="...")
client.chat.completions.create(model="gpt-4o-mini-tts", messages=[{"role":"user","content":"Hello"}])Node.js
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.aiadapter.com/v1", apiKey: process.env.AIADAPTER_API_KEY });
await client.chat.completions.create({ model: "gpt-4o-mini-tts", messages: [{ role: "user", content: "Hello" }] });FAQ
What is the model ID?
gpt-4o-mini-tts
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://api.aiadapter.com/v1.