Kunfeng AI
Back to creation

Help Center

API access

Create an API key and integrate through capability lookup, submission, status polling, and result retrieval.

Updated
August 7, 2026
Applies to
Current Kunfeng AI client

Quick answer

Call the API from your server with the site API Base URL and a Bearer API key. Website and API usage share the same points ledger.

Steps

  1. 1

    Create a key on the API page and store the one-time credential in your server-side secret manager.

  2. 2

    Read capabilities first and build requests from the model parameters and limits returned at that time.

  3. 3

    Give every logical submission a unique Idempotency-Key and set the maximum acceptable maxPoints.

  4. 4

    Poll the returned task identifier, then retrieve the result only after completion.

  5. 5

    Read expiresAt from the delivery and download the result before it expires.

Important notes

  • Never expose an API key in browser code, mobile packages, or public repositories.
  • Successful work deducts actual points; a definitive failure releases reserved points. Submissions are unavailable when the points balance is below the configured threshold.

Contact support

Scan with WeChat to contact support

WeChat support QR code