Skip to main content

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: zhihong@apimart.ai
  • Live chat: visit our website
  • Docs: browse the full API documentation