Account Information

Account Credits

Available Credits

0

Used Credits

0

Credits consumed per API call: 5
1 usd = 100 credits
Number of API calls available with current credits: 0

API Key Management

Generate and manage your API keys to access ChatGPT 4o Image API

Please keep your API key secure. Exposure could lead to unauthorized usage of your credits

API Documentation

Reference for integrating with our image generation API

Generation API

API Endpoint:https://4oimageapi.com/v1/generate
Method: POST
Header: Authorization: Bearer sk-xxxxxx
Request (JSON):
{
  "original_image_url": "https://example.com/image.png",
  "prompt": "Help me convert it to Ghibli style",
  "ratio": "1:1"
}
Response (JSON):
{
  "code": 200,
  "message": "success",
  "data": {
    "task_id": "xxxxx-aaaa-xxxxx"
  }
}

Query API

API Endpoint:https://4oimageapi.com/v1/query?task_id=aaaa-sssdsd-xxxx
Method: GET
Response (JSON):
{
  "code": 200,
  "msg": "success",
  "image_urls": [
    "https://example.com/image1_sakdjksdj.png",
    "https://example.com/image2_sakdjksdj.png"
  ],
  "timestamp": "19293918993"
}

Service Status

Current status of the service

Service Status: Online

Image Generation API

Create stunning AI-generated images with simple text prompts

Estimated waiting time: 1-2 minutes

API Response

Result of your image generation request

Query Existing Task

Submit a request to see the API response