All servicesDocs
Service
OpenAI
llm6 endpoints
OpenAI API for chat completions, embeddings, image generation, and audio. Access GPT-4o, DALL-E, Whisper, and TTS models. Pay per request with USDC on Tempo.
mpp
tempo
Methods
6 methods available
POST/v1/audio/speech20000 USDC
POST
/v1/audio/speechGenerate speech from text.
POST JSON body with model, input text, and voice.
{
"body": {
"model": "string (required, 'tts-1' or 'tts-1-hd')",
"input": "string (required, text to speak)",
"voice": "string (required: 'alloy', 'echo', 'fable', 'onyx', 'nova', 'shimmer')"
}
}POST/v1/audio/transcriptions10000 USDC
POST
/v1/audio/transcriptionsTranscribe audio with Whisper.
POST multipart form data with audio file and model.
{
"body": {
"file": "file (required, audio file)",
"model": "string (required, 'whisper-1')"
}
}POST/v1/chat/completions10000 USDC
POST
/v1/chat/completionsChat completions with GPT-4o, GPT-4, o1, and other models.
POST JSON body with model and messages array.
{
"body": {
"model": "string (e.g. 'gpt-4o', 'gpt-4', 'o1-preview')",
"messages": [
{
"role": "string ('system'|'user'|'assistant')",
"content": "string"
}
],
"temperature": "number (optional)",
"max_tokens": "number (optional)",
"stream": "boolean (optional)"
}
}POST/v1/embeddings100 USDC
POST
/v1/embeddingsCreate text embeddings.
POST JSON body with model and input text.
{
"body": {
"model": "string (e.g. 'text-embedding-3-small')",
"input": "string | array of strings"
}
}POST/v1/images/generations50000 USDC
POST
/v1/images/generationsGenerate images with DALL-E.
POST JSON body with prompt.
{
"body": {
"model": "string (optional, 'dall-e-3')",
"prompt": "string (required)",
"size": "string (optional: '1024x1024', '1792x1024', '1024x1792')",
"quality": "string (optional: 'standard', 'hd')",
"n": "number (optional, default 1)"
}
}POST/v1/responses10000 USDC
POST
/v1/responsesResponses API for Codex, GPT-4o, and other models.
POST JSON body. OpenAI Responses API format.
{
"body": {
"model": "string (e.g. 'gpt-4o', 'codex-mini')",
"input": "string | array",
"instructions": "string (optional)",
"temperature": "number (optional)"
}
}