API

Introduction

Retrieve image generation

Retrieves metadata and output references for a previously created image generation.

GET
https://api.novaai.com/v1/images/generations/{generation_id}

Authentication

Send a project-scoped NovaAI API key in the Authorization header using the Bearer scheme. Requests without valid credentials return 401 Unauthorized.

Authorization

string

required

Request properties

generation_id

string

required

Identifier of the image generation to retrieve.

include_prompt

boolean

optional

When true, includes the source prompt in the response.

project_id

string

optional

Optional project context when managing multiple projects.

Response behavior

A successful GET request returns a structured NovaAI resource response. Validate the returned identifier before persisting it, and handle 400 Bad Request for malformed input or 401 Unauthorized for invalid project credentials.

Integration notes

Use GET /v1/images/generations/{generation_id} from a trusted server environment. Keep your NovaAI API key out of browser bundles and pass only the data required for retrieve image generation in each request.

Validate inputs before sending the request, log the returned request identifier for troubleshooting, and use exponential backoff for temporary failures or rate-limit responses. Treat malformed payloads and authorization failures as non-retryable until corrected.

Error handling

Inspect the error type and code returned by NovaAI before retrying. Correct invalid parameters for 400 responses, refresh or replace credentials for 401 responses, and wait before retrying requests that are temporarily limited.

GET/v1/images/generations/{generation_id}
GET /v1/images/generations/{generation_id} HTTP/1.1
Authorization: Bearer NOVA_API_KEY
Content-Type: application/json
200Success response
{
"id": "retrieve_image_generation_01",
"object": "nova.resource",
"status": "succeeded"
}
400Invalid request
{
"error": {
"message": "Invalid request",
"type": "invalid_request_error",
"code": "invalid_parameter"
}
}

Create a free website with Framer, the website builder loved by startups, designers and agencies.