- A MaxAPI account and API key.
- An available model ID from the console.
curl, Python 3.8+, or Node.js 18+.
1
Create an API key
Sign in to MaxAPI and create an API key. Set it as an environment variable in your current terminal:
2
Send a request
Replace
YOUR_MODEL_ID with a model ID from the console. Install the openai package before you use the Python or Node.js example.3
Read the response
The generated text is available at
choices[0].message.content.Troubleshooting
Next steps
Choose an API format
Decide between an OpenAI-compatible and provider-native format.
Authentication
Manage API keys safely.
Asynchronous tasks
Generate images, videos, and music.