Bongoai API Documentation
Integrate the power of Bongoai into your own applications with our flexible and easy-to-use API.
Introduction
Welcome to the Bongoai API! Our API allows you to programmatically access our AI-powered tools for image generation, text-to-speech, and more. This documentation provides everything you need to get started, including authentication details, endpoint descriptions, and code examples.
Authentication
To use the API, you must include your API key in the Authorization
header of every request. You can find your API key in your account dashboard.
// Example with cURL
curl -H "Authorization: Bearer YOUR_API_KEY" \
-X POST https://api.bongoai.com/v1/generate-image
Endpoints
POST /v1/generate-image
Generates an image from a text prompt. This is a powerful endpoint for creating visual content on the fly.
Request Body
{ "prompt": "A futuristic cityscape at sunset", "style": "cyberpunk", "width": 1024, "height": 1024 }
Response Body (Success)
{ "status": "success", "image_url": "https://bongoai-images.s3.amazonaws.com/image-123.png", "credits_used": 5 }