2. Choose a Plan
API access requires credits. Different plans offer different rate limits and credit amounts.
- Free: Limited credits, ideal for testing.
- Creator/Pro: Higher limits and more credits for production use.
- Scale: High volume and dedicated support.
3. Initialize API Token
Once logged in, you need to generate an API key. You can find this in the API Dashboard or your profile settings.
How to get your key:
- Go to Comic API Dashboard
- Scroll to the "Test the API" section
- Click "Generate API Key" if you haven't already
- Copy your key (starts with
sk-or similar)
⚠️
Keep your API key secret. Do not share it or commit it to public repositories.
4. Make Your First Request
Now you're ready to generate a comic. Here's a simple curl command to get you started.
Generate ComicPOST /v1/comics/generations
curl -X POST https://api.llamagen.ai/v1/comics/generations \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A futuristic city with flying cars, cybernetic aesthetics, sunset lighting",
"preset": "render",
"size": "1024x1024"
}'Check StatusGET /v1/comics/generations/:id
curl https://api.llamagen.ai/v1/comics/generations/gen_123456789 \ -H "Authorization: Bearer YOUR_API_TOKEN"
5. Next Steps
Congratulations! You've successfully integrated the Comic API. Here are some things to explore next: