MarketSupport← Back to app

Use a Hosted URL

If your file is already online, you are done — pass the URL straight into the model's input.

Overview

No re-upload or URL exchange is needed. Any public HTTPS URL that returns the file bytes directly can be used as an input value (e.g. image_url, video_url, audio_url — see each model's docs for exact field names).

Checklist

  • Returns HTTP 200 with the correct Content-Type (verify with curl -I).
  • No login, referer/hotlink protection, or private-network address.
  • Not a share page — Google Drive / Dropbox / cloud-drive links need their direct download form.
cURL
curl -I "https://your-cdn.example.com/photo.jpg"

Example

cURL
curl -X POST "https://97ai.97claude.com/api/generate" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/nano-banana-image-to-image",
    "input": {
      "image_url": "https://your-cdn.example.com/photo.jpg",
      "prompt": "restyle as watercolor"
    }
  }'
Presigned URLs
Time-limited presigned URLs are fine as long as they remain valid while the task runs.