API Reference

Integrate our AI capabilities into your applications with our simple REST API.

Base URL
All API requests should be made to this base URL
https://9jz6.com/api
GET
/api/image
Generate images from text prompts

Parameters

NameTypeRequiredDescription
prompt
string
Required
Text description of the image
model
string
Optional
AI model to use (default: flux)
width
number
Optional
Image width in pixels (default: 1024)
height
number
Optional
Image height in pixels (default: 1024)
seed
string
Optional
Seed for reproducible results
enhance
boolean
Optional
Enhance prompt with AI

Example Request

curl "/api/image?prompt=example"
POST
/api/text
Generate text content

Parameters

NameTypeRequiredDescription
prompt
string
Required
Text prompt for generation
model
string
Optional
AI model to use (default: openai)
temperature
number
Optional
Randomness control (0-2)
system
string
Optional
System prompt for behavior

Example Request

curl -X POST "/api/text" \
  -H "Content-Type: application/json" \
  -d '{
  "prompt": "example"
}'
GET
/api/audio
Convert text to speech

Parameters

NameTypeRequiredDescription
text
string
Required
Text to convert to speech
voice
string
Optional
Voice to use (default: alloy)

Example Request

curl "/api/audio?text=example"
POST
/api/vision
Analyze images with AI

Parameters

NameTypeRequiredDescription
image
file
Optional
Image file to analyze
imageUrl
string
Optional
URL of image to analyze
prompt
string
Optional
Analysis prompt

Example Request

curl -X POST "/api/vision" \
  -H "Content-Type: application/json" \
  -d '{}'
Rate Limits
Current rate limits for API usage

Free Tier

  • • 100 requests per hour
  • • 1000 requests per day
  • • No authentication required

Response Format

  • • Images: Binary data (JPEG/PNG)
  • • Text: Plain text response
  • • Audio: Binary data (MP3)
  • • Errors: JSON with error message

Need Help?

Check out our documentation or contact our support team for assistance.