Prerequisites

Before you begin, you’ll need:

  • A LlamaGen.AI account
  • An API key (generate one here)
  • curl or your favorite HTTP client

Generate Your First Comic

1. Set up your API key

export LLAMAGENAI_API_KEY='your_api_key_here'

2. Make your first API request

curl -X POST 'https://api.llamagen.ai/v1/comics/generations' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer $LLAMAGENAI_API_KEY' \
-d '{
"model": "cyani-model",
"prompt": "A kid standing with hands, he is standing in Paris near the Eiffel tower. He is ready for his mission",
"size": "1024x1024"
}'

3. Check the response

{
"id": "cm23iyz3r0001le03m39ykh8v",
"status": "PROCESSING"
}

4. Retrieve your comic

curl -X GET 'https://api.llamagen.ai/v1/comics/generations/cm23iyz3r0001le03m39ykh8v' \
-H 'Authorization: Bearer $LLAMAGENAI_API_KEY'

Next Steps