Home / Provider/ OpenAI

OpenAI

Cloud API provider for GPT-4o, o1, and other OpenAI models via api.openai.com.

OpenAI provides the canonical OpenAI-compatible API at api.openai.com. musegpt supports all chat completion models including GPT-4o and o1.

Configuration

[backend]
name = "openai"
url = "https://api.openai.com"
model = "gpt-4o"
api_key = "sk-..."

Authentication

Bearer token via Authorization: Bearer <api_key> header.

Default Endpoint

POST https://api.openai.com/v1/chat/completions

Compiled with SchemaFlux