For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get generation result

Get the result of an AI content generation started for the specified WordPress installation, such as an image generation started with POST…

Get generation result

get

Get the result of an AI content generation started for the specified WordPress installation, such as an image generation started with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/content/images/generate.

While the generation is still running only status: in-progress is returned; poll every few seconds. Once completed, result holds the generated content shaped according to type: temporary image URLs together with the time they expire for image-generation, or the generated website document for website-generation (started from the Hostinger WordPress plugin). A failed generation has no result. Unknown or expired generation IDs return 404.

Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the id field).

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
usernamestringRequiredExample: u123456789
softwarestringRequired

WordPress installation (software) identifier

Example: 1232456789Pattern: ^[0-9]+$
generation_idstring · uuidRequired

Generation ID returned when the generation was started

Example: 9d4f8a1e-2b3c-4d5e-8f6a-7b8c9d0e1f2a
Query parameters
typestring · enum · nullableOptional

Generation type to look up. When omitted, every generation type is checked.

Example: image-generationPossible values:
Responses
200

Success response

application/json

State of an AI content generation and, once completed, its result.

generation_idstringRequired

Generation ID (UUID) used to poll for the result

Example: 9d4f8a1e-2b3c-4d5e-8f6a-7b8c9d0e1f2a
typestring · enumRequired

Kind of generation, determines the shape of result

Example: image-generationPossible values:
statusstring · enumRequired

in-progress while the generation is still running, completed once result is available, failed when the generation stopped without a result.

Example: in-progressPossible values:
resultany of · nullableRequired

Generated content, null until the status is completed. For image-generation it is the generated images object; for website-generation it is the generated website document.

or
object · Website generation documentOptionalExample: {"editor":"gutenberg","single_page":false,"home_page_id":"home","language":{"name":"en","code":"en"},"brand":{"name":"Kava House","tagline":"Weekly roasts from our counter"},"theme":[],"menu":[],"pages":[]}
get/api/hosting/v1/accounts/{username}/wordpress/{software}/content/generations/{generation_id}
GET /api/hosting/v1/accounts/{username}/wordpress/{software}/content/generations/{generation_id} HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "generation_id": "9d4f8a1e-2b3c-4d5e-8f6a-7b8c9d0e1f2a",
  "type": "image-generation",
  "status": "in-progress",
  "result": {
    "images": [
      {
        "url": "https://storage.googleapis.com/ai-images/hero-1.webp?X-Goog-Signature=abc123",
        "width": 1600,
        "height": 900,
        "content_type": "image/webp"
      }
    ],
    "expires_at": "2026-10-15T10:29:23+00:00"
  }
}

Last updated

Was this helpful?