Shark AI/Models/

bytedance/seedream-v4.5

Image

Model Information

Model IDbytedance/seedream-v4.5
CategoryImage
Endpoint/api/v1/images/generations

Request

POST https://shark.ai/api/v1/images/generations

Authentication: Authorization: Bearer <api-key>

Request Parameters

ParameterTypeRequiredDefaultDescription
modelstringModel ID: bytedance/seedream-v4.5
sizeenum: 512*512 | 768*768 | 1024*1024 | 1536*1536 | 2048*2048 | 1024*768 | 768*1024 | 1536*1024 | 1024*1536"2048*2048"Image size in pixels (width*height)
promptstringText description of the image to generate

Code Examples

curl -X POST https://shark.ai/api/v1/images/generations \
  -H "Authorization: Bearer <api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "bytedance/seedream-v4.5",
  "size": "2048*2048",
  "prompt": "Your prompt here"
}'

Response

Response (200 OK)
{
  "created": 1700000000,
  "data": [
    {
      "url": "https://cos.example.com/images/...signed..."
    }
  ],
  "usage": {
    "input_tokens": 14,
    "output_tokens": 1542,
    "total_tokens": 1556
  },
  "credit": 90
}

Error Codes

HTTPTypeDescription
400invalid_request_errorInvalid parameters
400content_moderationContent blocked by safety system
400input_too_largeInput exceeds model limit
401auth_errorInvalid API key
402insufficient_creditsNot enough credits
429rate_limit_errorToo many requests
502provider_errorUpstream error, retry later
504timeout_errorRequest timed out
Try in PlaygroundAPI ReferenceAll Models