Appearance
Getting Started
Get up and running with ArtAPI in under 5 minutes.
1. Create an account
Sign up at app.artapi.ai. No credit card required to start.
2. Get your API key
In the dashboard, go to Settings → API Keys and create a new key. Copy it — you won't see it again.
Keep your key secret
Never expose API keys in client-side code, public repositories, or logs. Rotate immediately if compromised.
3. Set your base URL
ArtAPI is OpenAI-compatible. Use https://app.artapi.ai as the base URL in any OpenAI SDK or HTTP client.
4. Make your first request
bash
curl https://app.artapi.ai/v1/images/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "flux-dev",
"prompt": "A serene mountain lake at golden hour",
"n": 1,
"size": "1024x1024"
}'A successful response returns a URL to your generated image:
json
{
"created": 1716000000,
"data": [
{
"url": "https://...",
"revised_prompt": "A serene mountain lake at golden hour..."
}
]
}Using the OpenAI SDK?
See SDKs & Examples for Python and Node.js quickstarts using the official OpenAI client.
Next steps
- Authentication — understand how auth works
- Image Generation — full API reference
- Models — available models and capabilities
- Pricing — credits and billing