跳转到内容

Quick Start

此内容尚不支持你的语言。

Get up and running with HiAPI in 3 minutes.

  1. Get your API key

    Sign up at hiapi.ai, then go to Dashboard → API Keys to create a new key.

  2. Add credits

    Go to Dashboard → Billing to add credits. New accounts get free trial credits.

  3. Make your first request

    Terminal window
    curl -X POST https://api.hiapi.ai/v1/images/generations \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
    "model": "dall-e-3",
    "prompt": "a futuristic city at sunset",
    "size": "1024x1024"
    }'
  4. View the result

    The response contains the image URL. Open it in your browser to see your generated image.