Guides

Development Guide

Integrate the API into your application

Development Guide

This guide helps you integrate our API services into your application.

Asynchronous Processing

Our API uses an asynchronous processing model:
  1. Submit a task: send a generation request and receive a task ID
  2. Poll status: periodically check task status
  3. Get results: fetch generation results when the task completes

Polling example

Error Handling

Common errors

Example

Best Practices

  1. Caching: generated image/video links are valid for 24 hours
  2. Retries: implement exponential backoff on transient errors
  3. Monitoring: regularly check API usage and quotas
  4. Security: keep your API key secure

Support

If you run into issues during development, you can get help via:
  • Email: [email protected]
  • Live chat: visit our website
  • Docs: browse the full API documentation