Welcome to the Text-to-Image API with SiliconFlow!

Usage:

  1. Send a POST request to /ai/v1/chat/completions
  2. Include your prompt in the 'content' field of the last message
  3. Optional parameters:

Example Request:


{
    "model": "flux",
    "messages": [
        {
            "role": "user",
            "content": "A beautiful landscape -s 16:9"
        }
    ]
}
        

For more details, please refer to the API documentation.