Continue a conversation with the API
Send your next question with previousJobId from a completed text job. Use the same API key and model to carry the conversation forward.
AI chat — API and integration boundary
| Capability | Request or state | Production boundary |
|---|---|---|
| GET /models | id · version · creditCost.base | Authorization: Bearer … |
| POST /jobs | mode · prompt · modelId · modelVersion · quotedCredits · previousJobId | Idempotency-Key |
| GET /jobs/{jobId} | jobId | Authorization: Bearer … |
| GET /jobs/{jobId}/outputs | jobId | Authorization: Bearer … |
Model
curl -fsS 'https://freeaigenerator.ai/api/v1/llm/catalog' | jq '.items[] | select(.executable == true) | {id, displayName, maxPromptLength: .capabilities.maxPromptLength, maxInputBytes: .capabilities.maxInputBytes}'POST /jobs
api='https://freeaigenerator.ai/api/v1/developer'
curl -fsS -H "Authorization: Bearer ${FREEAIGENERATOR_API_KEY:?}" "$api/models" |
jq -e --arg id 'openai-gpt-6-luna' --arg prompt 'What color did I ask for earlier?' --arg parent "${PREVIOUS_JOB_ID:?}" \
'.items[] | select(.id == $id and .status == "available") |
{mode, prompt: $prompt, modelId: .id, modelVersion: .version, quotedCredits: .creditCost.base, parameters: {}, previousJobId: $parent}'GET /jobs/{jobId} → succeeded → PREVIOUS_JOB_ID
Sign in to view your credit balance. A listed model can still be temporarily unavailable; examples do not establish other workflow availability.
Worked example
First try this example manually. For an integration, confirm that the documented endpoint accepts the same input and produces the output you need.
Draft a pickup notice for Saturday, 10–12. Then ask in the same conversation: shorten it to one sentence.
Check your result
The shorter reply should retain both the day and the time without inventing an address.
FAQ
What does the generation API cover?
Send your next question with previousJobId from a completed text job. Use the same API key and model to carry the conversation forward.
How are jobs, credits and events handled?
The service reserves the displayed cost once, settles successful outputs and releases failed-job reservations. Check the job status and refreshed balance for the actual result.
What can a guest do before signing up?
Try AI image generation with your own prompt, no sign-up needed. Sign in to choose other models and see their credit costs.