Services/OpenAI
// AI

OpenAI

Chat, embeddings, images, and audio.

Endpoints
5
From
$0.02
Settle
~400ms
// ENDPOINTS

All routes, one base URL.

base https://mpp.t2000.ai/openai

MethodPathFrom
POST
/v1/chat/completions
Chat completions (GPT-4o, o1, etc.)
$0.02
POST
/v1/embeddings
Create embeddings
$0.02
POST
/v1/images/generations
Generate images with gpt-image-1
$0.10
POST
/v1/audio/transcriptions
Transcribe audio with Whisper
$0.02
POST
/v1/audio/speech
Text-to-speech
$0.04
// EXAMPLE

Two requests. Gasless.

First call returns a 402 with a payment quote. Pay it. Retry with the Payment header. The gateway forwards the response.

curl
$ curl -X POST \
    https://mpp.t2000.ai/openai/v1/chat/completions \
    -H "Content-Type: application/json" \
    -d '{ "model": "…", "input": "…" }'

# → 402 Payment Required
# → Payment header { quote, recipient, expiry }

$ retry with Payment header
# → 200 OK · response forwarded
@t2000/sdk
const r = await t.pay({
  url: 'https://mpp.t2000.ai/openai/v1/chat/completions',
  body: { /* OpenAI payload */ },
});

// → r.json() · 200 OK · gasless · ~400ms