SJinn
Seedream V5 Lite

Seedream V5 Lite

Generate and edit high-quality images using ByteDance's lightweight Seedream V5 Lite model

Tool Overview

The Seedream V5 Lite tool uses ByteDance's Seedream V5 Lite model, a lightweight yet powerful image generation model. It supports text-to-image generation and image editing with reference images. Seedream V5 Lite offers fast generation speed while maintaining high image quality.

Tool Identifier

seedream-v5-lite-api

Parameters

Required Parameters

prompt

  • Type: string (required)
  • Description: Text description of the image content to guide AI image generation or editing
  • Validation: Must be a non-empty string
  • Example: "A watercolor painting of a mountain village at dawn"

Optional Parameters

image_list

  • Type: string[] (optional)
  • Default: [] (empty array, no reference images)
  • Format: Array of complete HTTP/HTTPS URLs (e.g., ["https://cdn.sjinn.ai/uploads/image.jpg"])
  • Description: Reference images for image editing. When provided, the model will edit based on these images and the prompt

image_size

  • Type: string (optional)
  • Default: "auto"
  • Supported Values:
    • "auto" - Automatically select the optimal size
    • "16:9" - Widescreen landscape
    • "9:16" - Portrait mobile
    • "1:1" - Square format
    • "4:3" - Standard landscape
    • "3:4" - Standard portrait
    • "3:2" - Classic landscape
    • "2:3" - Classic portrait
  • Note: If "auto" is selected or an invalid value is provided, the size will be automatically determined

Pricing

  • Credits Consumed: 50 credits per task
  • Membership Requirement: None

Request Examples

Text-to-Image (No Reference)

curl -X POST https://sjinn.ai/api/un-api/create_tool_task \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "tool_type": "seedream-v5-lite-api",
    "input": {
      "prompt": "A watercolor painting of a mountain village at dawn",
      "image_size": "16:9"
    }
  }'

Image Editing with Reference

curl -X POST https://sjinn.ai/api/un-api/create_tool_task \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "tool_type": "seedream-v5-lite-api",
    "input": {
      "prompt": "Add a rainbow in the sky and make the colors more vibrant",
      "image_list": ["https://cdn.sjinn.ai/uploads/landscape.jpg"],
      "image_size": "16:9"
    }
  }'

Using JavaScript

const response = await fetch('https://sjinn.ai/api/un-api/create_tool_task', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    tool_type: 'seedream-v5-lite-api',
    input: {
      prompt: 'A watercolor painting of a mountain village at dawn',
      image_size: '16:9',
    },
  }),
});

const result = await response.json();
console.log('Task ID:', result.data.task_id);

Using Python

import requests

url = 'https://sjinn.ai/api/un-api/create_tool_task'
headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
}
data = {
    'tool_type': 'seedream-v5-lite-api',
    'input': {
        'prompt': 'A watercolor painting of a mountain village at dawn',
        'image_size': '16:9'
    }
}

response = requests.post(url, json=data, headers=headers)
result = response.json()
print('Task ID:', result['data']['task_id'])

Response Examples

Success Response

{
  "success": true,
  "errorMsg": "",
  "error_code": 0,
  "data": {
    "task_id": "550e8400-e29b-41d4-a716-446655440000"
  }
}

Error Response

{
  "success": false,
  "errorMsg": "prompt is required",
  "error_code": 400
}

Best Practices

  1. Prompt Optimization:

    • Use detailed, specific descriptions for better results
    • Include style, color, lighting, and composition details
    • Can specify art styles (e.g., "photorealistic", "anime style", "watercolor")
  2. Reference Image Usage:

    • Image editing: Provide the original image to edit
    • Style reference: Provide style example images
    • Multi-image fusion: Can provide multiple reference images (recommend no more than 3)
  3. Image Size Selection:

    • auto is suitable for letting AI automatically choose the best size
    • Social media: Instagram uses 1:1, Story uses 9:16
    • Web banners: Use 16:9
  4. Image URL Format:

    • All image URLs in image_list must be complete HTTP/HTTPS addresses
    • Ensure images are publicly accessible
  5. Generation Time: Typically 10-60 seconds to complete

  6. V5 Lite vs V4.5: V5 Lite offers faster generation with comparable quality. Use V4.5 for maximum detail, V5 Lite for speed-sensitive workflows

Related Links