Quick Start
Get a first HiAPI request working in about 3 minutes.
-
Get your API key
Sign up at hiapi.ai, then go to Dashboard → API Keys to create a new key for your test environment.
-
Add funds
Go to Dashboard → Billing to add funds. New accounts usually receive enough trial balance to verify the flow.
-
Make your first request
Terminal window curl https://api.hiapi.ai/v1/images/generations \-H "Authorization: Bearer YOUR_API_KEY" \-H "Content-Type: application/json" \-d '{"model": "qwen-image-2.0","prompt": "editorial-style product photo of a matte black kettle on a walnut table, warm morning light","size": "1024x1024"}'from openai import OpenAIclient = OpenAI(api_key="YOUR_API_KEY",base_url="https://api.hiapi.ai/v1")response = client.images.generate(model="qwen-image-2.0",prompt="editorial-style product photo of a matte black kettle on a walnut table, warm morning light",size="1024x1024")print(response.data[0].url)import OpenAI from "openai";const client = new OpenAI({apiKey: "YOUR_API_KEY",baseURL: "https://api.hiapi.ai/v1"});const response = await client.images.generate({model: "qwen-image-2.0",prompt: "editorial-style product photo of a matte black kettle on a walnut table, warm morning light",size: "1024x1024"});console.log(response.data[0].url); -
View the result
The response contains the generated image URL. Once that works, move model and prompt settings into your app config.
Next Steps
Section titled “Next Steps”- Review Authentication before shipping this to production
- Browse all available models
- Check the API Reference for all endpoints