97AI.PRO

Qwen Quickstart — API Tutorial and First Request

This Qwen quickstart shows the fastest production path: create one 97AI.PRO API key, call `https://97ai.97claude.com/api/generate`, verify the response, then move the request into your app. Pricing is pay-per-use pricing, failed image to image outputs cost $0, and no Qwen account is required.

1-minute setup

  1. Create a 97AI.PRO account and open the API keys page.
  2. Top up at least $5 by credit card, USDC on Arbitrum, Alipay, or WeChat Pay.
  3. Copy an API key and call `https://97ai.97claude.com/api/generate` with `model: "qwen/image-to-image"`.
  4. Log the returned credits and balance fields so your production app can show usage clearly.

Copy-ready first request

Run this from a terminal after replacing $YOUR_KEY with your live API key.

curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"qwen/image-to-image","input":{"prompt":"A cinematic product shot with soft studio lighting"}}'

Production checklist

  1. Store the API key server-side only; never expose it in browser JavaScript.
  2. Add a request id to your own logs before every image to image generation so retries are traceable.
  3. Handle failed calls as a normal state. 97AI.PRO charges $0 for failures, but your UI should still show the error.
  4. Use webhook callbacks or polling for long-running image to image tasks.

Frequently asked questions

Do I need a Qwen account for this Qwen tutorial?+

No. 97AI.PRO gives you one API key that works across Qwen and the rest of the model catalog.

Which endpoint should I use for Qwen?+

Use `https://97ai.97claude.com/api/generate` with `model: "qwen/image-to-image"`.

How much should I top up before testing?+

$5 is enough for a practical smoke test. The exact number of calls depends on the model and payload size.

Can I use this quickstart in China or without a US card?+

Yes. 97AI.PRO supports Alipay, WeChat Pay, and USDC on Arbitrum, and the platform is reachable from mainland China without a VPN.

What is the first production risk to test?+

Test failure handling first. Treat a failed image to image generation as a normal API state, log it, show a clear message, and retry only when your app can do so safely.

Ready to try Qwen?

Sign up on 97AI.PRO, top up with credit card / USDC / Alipay, and get an API key in under 60 seconds.

Related image to image