Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
letz-ai avatar

Letzai Api

  • 908 installs
  • Updated July 28, 2026
  • letz-ai/letzai-skill

letzai-api is an agent skill that integrates LetzAI image and video generation, editing, upscaling, and custom @modelname models through the LetzAI REST API for developers building content automation in Cursor or Claude

About

letzai-api is an MIT-licensed agent skill from letz-ai/letzai-skill that enables coding agents to integrate the LetzAI API for AI-powered image and video workflows. Image models include Nano Banana Pro, Flux2 Max, and SeeDream; video models include VEO and Kling. Developers can invoke custom-trained models with @modelname syntax for persons, objects, or styles, plus context editing and upscaling endpoints. Authentication uses the LetzAI base URL at https://api.le... with dependencies on node-fetch for npm and requests for pip. Reach for letzai-api when wiring generative media into content apps or agent automations rather than building models locally. The skill covers API integration patterns, not hosting or model training infrastructure.

  • Generates images using Nano Banana Pro, Flux2 Max, and SeeDream models
  • Creates videos with VEO and Kling models
  • Supports custom trained models via @modelname syntax
  • Includes context editing and image upscaling capabilities
  • Works with both JavaScript (node-fetch) and Python (requests) implementations

Letzai Api by the numbers

  • 908 all-time installs (skills.sh)
  • +2 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #300 of 1,335 Generative Media skills by installs in the Skillselion catalog
  • Security screen: HIGH risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/letz-ai/letzai-skill --skill letzai-api

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs908
Security audit1 / 3 scanners passed
Last updatedJuly 28, 2026
Repositoryletz-ai/letzai-skill

How do you integrate LetzAI image and video API?

Let their coding agent generate, edit, and upscale AI images and videos through the LetzAI API inside Cursor or Claude Code sessions.

Who is it for?

Developers adding LetzAI generative image and video endpoints to Node.js or Python apps inside agent-assisted coding sessions.

Skip if: Teams training custom diffusion models locally or building non-LetzAI provider integrations without the LetzAI REST API.

When should I use this skill?

The user asks to generate, edit, upscale AI images or videos via LetzAI, Flux2 Max, VEO, Kling, or @modelname custom models.

What you get

Working LetzAI API client code, authenticated requests, and image or video generation, edit, and upscale call patterns.

  • API integration code
  • Image and video generation call patterns

By the numbers

  • Documents 3 image models: Nano Banana Pro, Flux2 Max, and SeeDream
  • Documents 2 video models: VEO and Kling
  • MIT license with 2 declared dependencies: node-fetch and requests

Files

SKILL.mdMarkdownGitHub ↗

LetzAI API Integration Skill

Overview

This skill enables Claude to help users integrate with the LetzAI API for AI-powered image and video generation, editing, and upscaling. Users can also leverage custom-trained AI models (persons, objects, styles) via the @modelname syntax.

Authentication

Setting Up Authentication

const headers = {
  'Content-Type': 'application/json',
  'Authorization': 'Bearer YOUR_API_KEY'
};
headers = {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer YOUR_API_KEY'
}

Core Workflows

1. Image Generation

Endpoint: POST /images

Required Parameters:

  • prompt (string): Text description of the desired image. Can include @modelname to use trained models.

Optional Parameters:

  • baseModel: AI model to use
  • "gemini-3-pro-image-preview" - Nano Banana Pro (recommended)
  • "flux2-max" - Flux2 Max
  • "seedream-4-5-251128" - SeeDream 4.5
  • mode: Resolution mode (varies by model)
  • Nano Banana Pro: "default", "2k", "4k"
  • Flux2 Max: "1k", "hd"
  • SeeDream: "2k", "4k"
  • width / height: Image dimensions (520-2160px)

Workflow: 1. POST to /images with parameters 2. Receive id in response 3. Poll GET /images/{id} every 3 seconds 4. When status === "ready", access imageVersions.original

For code examples, see examples/image_generation.js

2. Video Generation

Endpoint: POST /videos

Required Parameters:

  • prompt (string): Text description of the desired video
  • Source image (one of):
  • imageUrl: URL of source image
  • originalImageCompletionId: ID from previous image generation

Optional Parameters:

  • settings.mode: Video model
  • "default" - Default model
  • "veo31" - VEO 3.1
  • "kling26" - Kling 2.6
  • "wan25" - Wan 2.5
  • settings.duration: Video length in seconds (2-12 depending on model)

Workflow: 1. Ensure you have a source image (generate one first if needed) 2. POST to /videos with parameters 3. Receive id in response 4. Poll GET /videos/{id} every 2-3 seconds 5. When status === "ready", access videoPaths

For code examples, see examples/video_generation.py

3. Image Editing (Context Editing)

Endpoint: POST /image-edits

Required Parameters:

  • mode: Edit mode
  • "context" - AI editing (primary mode)
  • "skin" - Skin fix
  • prompt: Edit instruction (e.g., "change background to beach")
  • Source image (one of):
  • imageUrl: URL of source image
  • inputImageUrls[]: Array of source image URLs (max 9)
  • originalImageCompletionId: ID of previously generated LetzAI image

Optional Parameters:

  • settings.model: "gemini-3-pro-image-preview", "flux2-max", "seedream-4-5-251128"
  • settings.resolution: "2k" (HD) or "4k" (Ultra HD)
  • settings.aspect_ratio: "1:1", "16:9", "9:16", "4:3", "3:4", "21:9", "9:21"
  • baseModel: Alternative to settings.model
  • webhookUrl: Optional callback URL
  • organizationId: Optional org ID for billing

Workflow: 1. POST to /image-edits with parameters 2. Receive id in response 3. Poll GET /image-edits/{id} every 3 seconds 4. When status === "ready", access generatedImageCompletion.imageVersions.original

Note: Inpainting (mode: "in") and Outpainting (mode: "out") are deprecated - use Context Editing instead.

4. Image Upscaling

Endpoint: POST /upscales

Required Parameters:

  • Source image (one of):
  • imageUrl: URL of source image
  • imageCompletionId: ID from previous image generation

Optional Parameters:

  • strength: Upscale factor (1-3)

Workflow: 1. POST to /upscales with parameters 2. Receive id in response 3. Poll GET /upscales/{id} every 3 seconds 4. When status === "ready", access upscaled image

5. Custom AI Models (Trained Models)

LetzAI users can train custom AI models on persons, objects, or styles via the web interface. These trained models can be used in prompts via the @modelname syntax.

List Models Endpoint: GET /models

Query Parameters:

  • page: int (default: 1)
  • limit: int (default: 10)
  • sortBy: "createdAt" | "usages"
  • sortOrder: "ASC" | "DESC"
  • class: "person" | "object" | "style"

Get Model Details: GET /models/{id}

Model Classes:

  • person: Trained on photos of a specific person
  • object: Trained on product/object images
  • style: Trained on artistic style examples

Using Models in Prompts: Tag models with @modelname syntax:

  • @john_doe on the beach at sunset - Use a person model
  • A product photo featuring @my_product - Use an object model
  • Portrait in @vintage_style aesthetic - Use a style model

Note: Model training is done via the LetzAI web interface (letz.ai), not via API.

Workflow Decision Tree

User wants to create an image:

1. Determine appropriate model based on quality/cost needs 2. Use POST /images with appropriate baseModel 3. If using a trained model, include @modelname in the prompt 4. Poll GET /images/{id} every 3s until ready 5. Return imageVersions.original URL

User wants to use a custom trained model:

1. Use GET /models to list available trained models (filter by class if needed) 2. Include @modelname in the prompt when generating images 3. Generate image normally with POST /images

User wants to edit an existing image:

1. Obtain source image URL, inputImageUrls array, or originalImageCompletionId 2. Use POST /image-edits with mode="context" 3. Include settings for resolution, aspect_ratio, and model as needed 4. Poll GET /image-edits/{id} every 3s until ready 5. Return generatedImageCompletion.imageVersions.original

User wants to create a video:

1. Ensure they have a source image (URL or imageCompletionId) 2. If no source image, generate one first using /images 3. Use POST /videos with desired settings 4. Poll GET /videos/{id} every 2-3s until ready 5. Return video URL from videoPaths

User wants to upscale an image:

1. Obtain source image URL or imageCompletionId 2. Use POST /upscales with desired strength 3. Poll GET /upscales/{id} every 3s until ready 4. Return upscaled image URL

Status Polling Pattern

LetzAI uses asynchronous generation. After any POST request, you must poll the corresponding GET endpoint until the job completes.

Status Values

StatusMeaning
newJob created, queued for processing
in progress / generatingCurrently processing
readyComplete - fetch URLs from response
failedError occurred - check error message

Polling Intervals

  • Images: Every 3 seconds
  • Videos: Every 2-3 seconds
  • Image Edits: Every 3 seconds
  • Upscales: Every 3 seconds

For detailed polling implementation, see examples/polling_pattern.md

Pricing Reference

FeatureModelCredits
Image GenNano Banana Pro80/160/240 (1k/HD/4K)
Image GenFlux2 Max60/120 (1k/HD)
Image GenSeeDream80/160 (HD/4K)
EditingSame as aboveSame pricing
VideoDefault60 cr/sec (2-6 sec)
VideoVEO 3.11500-6000 cr (8 sec)
VideoKling 2.6750-1500 cr (5-10 sec)
UpscaleAll40 cr

Error Handling

Common HTTP Status Codes

StatusMeaningSolution
401Invalid or missing API keyCheck Authorization header format
402Insufficient creditsTop up at letz.ai/subscription
400Invalid parametersVerify baseModel, mode, dimensions
404Resource not foundCheck the ID is correct
429Rate limitedImplement exponential backoff
500Server errorRetry after delay

Error Response Format

{
  "error": "Error description",
  "code": "ERROR_CODE"
}

Limitations

  • Async Generation: All generation is asynchronous - must poll for results
  • Video Source: Video generation requires a source image
  • Reference Images: Maximum 9 reference images for image editing
  • Model Training: Cannot train custom AI models via API - use letz.ai web interface
  • API Key Required: Paid subscription required for API access

Quick Reference: API Endpoints

EndpointMethodPurpose
/imagesGETList user's images
/imagesPOSTCreate image (prompt, baseModel, mode, width, height)
/images/{id}GETGet image status & URLs (poll every 3s)
/images/{id}/interruptionPUTStop image generation
/images/{id}/privacyPUTChange image privacy
/videosGETList user's videos
/videosPOSTCreate video (prompt, imageUrl, settings)
/videos/{id}GETGet video status & URLs (poll every 2-3s)
/videos/{id}/interruptionPUTStop video generation
/videos/{id}/privacyPUTChange video privacy
/image-editsGETList user's edits
/image-editsPOSTEdit image (mode, prompt, imageUrl/inputImageUrls, settings)
/image-edits/{id}GETGet edit status & URLs (poll every 3s)
/upscalesPOSTUpscale image (imageUrl/imageUrls, strength, mode, size)
/upscales/{id}GETGet upscale status & URLs (poll every 3s)
/modelsGETList trained AI models (filter by class: person/object/style)
/models/{id}GETGet specific model details

Key Response Fields

  • Images/Upscales: imageVersions.original, imageVersions["1920x1920"], imageVersions["640x640"]
  • Edits: generatedImageCompletion.imageVersions.original
  • Videos: videoPaths object, videoVersions array
  • Status values: new, in progress/generating, ready, failed

Additional Resources

Related skills

How it compares

Pick letzai-api when you need LetzAI-specific @modelname, upscaling, and multi-model image/video endpoints rather than generic OpenAI image API wrappers.

FAQ

Which LetzAI image and video models does letzai-api cover?

letzai-api documents Nano Banana Pro, Flux2 Max, and SeeDream for images, plus VEO and Kling for video generation through the LetzAI REST API.

What dependencies does letzai-api require?

letzai-api lists node-fetch for npm-based Node.js clients and requests for pip-based Python clients when calling LetzAI authentication and generation endpoints.

Is Letzai Api safe to install?

skills.sh reports 1 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Generative Mediaautomationagents

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.