OpenAI-compatible chat/text completion
Point any OpenAI SDK at this base URL. Routes the messages to the selected model through GenMagic, billed against the key's real USD balance at the model provider's own usage cost (cached input and long-context prompts bill at the prices in /api/v1/models). The request body is forwarded to the model unchanged, so every parameter in the model's supported_parameters works as sent (temperature, tools, response_format, seed, ...). Streams with server-sent events when stream=true. When the key owner has Brand personalization on, a brand system message is prepended automatically.
post/api/v1/chat/completions
Request
- Base URL: https://genmagic.co
- URL: https://genmagic.co/api/v1/chat/completions
- Auth: HTTP bearer
Request body
Response
Success.
Changes
No recorded changes to this operation across all 1 revision of this API.