Skip to main content

Image Generation Models

Generate high-quality images from text descriptions with Assisters Image, our advanced text-to-image model.

Assisters Image v1

Our state-of-the-art image generation model that creates stunning visuals from natural language descriptions.
SpecificationValue
Model IDassisters-image-v1
Max Resolution1024x1024
Supported Sizes256x256, 512x512, 1024x1024
Price$0.01 / image
Latency~3-5 seconds

Capabilities

  • Photo-realistic Images: Generate lifelike photographs
  • Artistic Styles: Create art in various styles (oil painting, watercolor, etc.)
  • Product Mockups: Design product images and mockups
  • Illustrations: Generate illustrations and graphics
  • Multiple Sizes: Output in various resolutions

Example Usage

from openai import OpenAI

client = OpenAI(
    base_url="https://api.assisters.dev/v1",
    api_key="your-api-key"
)

response = client.images.generate(
    model="assisters-image-v1",
    prompt="A serene Japanese garden with cherry blossoms and a wooden bridge over a koi pond, soft morning light",
    n=1,
    size="1024x1024"
)

image_url = response.data[0].url
print(f"Image URL: {image_url}")

With Base64 Response

response = client.images.generate(
    model="assisters-image-v1",
    prompt="A futuristic city skyline at sunset with flying cars",
    n=1,
    size="1024x1024",
    response_format="b64_json"
)

# Access base64 image data
import base64

image_data = base64.b64decode(response.data[0].b64_json)
with open("generated_image.png", "wb") as f:
    f.write(image_data)

Multiple Images

response = client.images.generate(
    model="assisters-image-v1",
    prompt="A cozy coffee shop interior with warm lighting",
    n=4,  # Generate 4 variations
    size="512x512"
)

for i, image in enumerate(response.data):
    print(f"Image {i+1}: {image.url}")

Parameters

ParameterTypeDefaultDescription
promptstringrequiredText description of image
modelstringrequiredModel ID (assisters-image-v1)
nint1Number of images (1-10)
sizestring”1024x1024”Image dimensions
response_formatstring”url”Output format
qualitystring”standard”Image quality

Available Sizes

SizeAspect RatioBest For
256x2561:1Thumbnails, icons
512x5121:1Social media, previews
1024x10241:1Full-size images

Use Cases

Generate product mockups and variations:
response = client.images.generate(
    model="assisters-image-v1",
    prompt="A modern minimalist water bottle in matte black finish, studio lighting, product photography",
    n=4,
    size="1024x1024"
)
Create marketing images and banners:
response = client.images.generate(
    model="assisters-image-v1",
    prompt="Happy diverse team collaborating in a modern office space, professional photography, bright and welcoming",
    size="1024x1024"
)
Generate concept art and illustrations:
response = client.images.generate(
    model="assisters-image-v1",
    prompt="Epic fantasy landscape with floating islands, waterfalls, and ancient ruins, concept art style, dramatic lighting",
    size="1024x1024"
)
Create social media graphics:
response = client.images.generate(
    model="assisters-image-v1",
    prompt="Inspirational quote background with soft gradient colors and abstract geometric shapes, modern design",
    n=3,
    size="512x512"
)

Prompt Engineering Tips

Be Specific

Include details about style, lighting, composition, and mood

Describe Style

Mention art styles: “oil painting”, “digital art”, “photograph”

Include Context

Describe the setting, time of day, and atmosphere

Use Quality Keywords

Add “high quality”, “detailed”, “professional” for better results

Example Prompts

Use CasePrompt Example
Portrait”Professional headshot of a business executive, studio lighting, neutral background, high quality photograph”
Landscape”Breathtaking mountain vista at golden hour, snow-capped peaks reflected in crystal lake, nature photography”
Product”Elegant watch on marble surface, dramatic lighting, luxury product photography, high detail”
Abstract”Flowing abstract shapes in vibrant blue and gold, digital art, modern design”
Food”Gourmet chocolate cake with fresh berries, restaurant presentation, food photography, soft lighting”

Best Practices

  1. Start with a clear subject: Describe the main focus first
  2. Add style descriptors: Mention the artistic style you want
  3. Include lighting details: “soft lighting”, “dramatic shadows”, “golden hour”
  4. Specify quality: “high resolution”, “detailed”, “professional”
  5. Avoid ambiguity: Be specific about what you want

Content Policy

Images must comply with our content policy:
  • No violent or harmful content
  • No adult or explicit content
  • No content that violates copyrights
  • No content depicting real individuals without consent