Características

Generación de imágenes

La API de Generación de Imágenes le permite crear imágenes de alta calidad a partir de indicaciones en lenguaje natural. Ya sea que esté generando arte conceptual, activos de marketing, maquetas de productos, ilustraciones o inspiración para interfaces de usuario, NovaAI transforma el texto descriptivo en imágenes visualmente atractivas con una sola solicitud de API.

Overview

NovaAI Image Generation uses advanced text-to-image models to produce images from descriptive prompts. Simply describe what you want to create, configure the generation parameters, and the model returns one or more generated images.

The quality of the output depends on the clarity and specificity of your prompt. Providing visual details such as style, composition, lighting, colors, and camera perspective helps the model generate more accurate results.

Note: The Image Generation API is optimized for creating original images from text prompts. It is not intended for editing existing images or performing image analysis.

Note: The Image Generation API is optimized for creating original images from text prompts. It is not intended for editing existing images or performing image analysis.

How Image Generation Works

Rendering diagram…

Each request follows the same workflow, from prompt creation to image delivery.

Generate Your First Image


import { NovaAI } from "@novaai/sdk";
 
const client = new NovaAI({
apiKey: process.env.NOVA_API_KEY,
});
 
const image = await client.images.generate({
model: "nova-image-1",
prompt: "A futuristic smart city at sunset with flying vehicles, cinematic lighting, ultra detailed.",
size: "1024x1024"
});
 
console.log(image.data);

Request Properties

model

string

requerido

Image generation model.

prompt

string

requerido

Text description of the desired image.

size

string

opcional

Output image dimensions.

quality

string

opcional

Image quality level.

format

string

opcional

Image output format.

count

integer

opcional

Number of images to generate.

Prompt Writing Tips

High-quality prompts typically include:

  • Subject

  • Environment

  • Artistic style

  • Lighting

  • Camera perspective

  • Color palette

  • Composition

  • Level of detail

Example Prompt

Image Generation Prompt

Copiar indicador

Image Generation Prompt

Copiar indicador

The more descriptive your prompt, the more predictable the generated image becomes.

Supported Image Sizes

Resolution

Aspect Ratio

Recommended Use

512 × 512

1:1

Icons and thumbnails

1024 × 1024

1:1

General-purpose image generation

1024 × 1536

2:3

Portrait illustrations

1536 × 1024

3:2

Landscape scenes

1920 × 1080

16:9

Presentations and banners

Response Example

{
"id": "img_91af7d",
"created": 1743256821,
"data": [
{
"url": "https://cdn.novaai.dev/images/image-01.png"
}
]
}

Best Practices

  • Write clear and descriptive prompts.

  • Include visual style references when appropriate.

  • Specify lighting, composition, and camera angle.

  • Choose the correct output resolution for your use case.

  • Generate multiple variations when exploring creative concepts.

Tip: Start with a simple prompt, then gradually refine it by adding more visual details instead of trying to describe everything at once.

Tip: Start with a simple prompt, then gradually refine it by adding more visual details instead of trying to describe everything at once.

Common Prompt Examples

Product Photography

Product Photography Prompt

Copiar indicador

Product Photography Prompt

Copiar indicador

Illustration

Illustration Prompt

Copiar indicador

Illustration Prompt

Copiar indicador

Concept Art

Concept Art Prompt

Copiar indicador

Concept Art Prompt

Copiar indicador

Common Errors

Empty Prompt

The request does not contain a valid prompt.

Solution

Provide a descriptive text prompt before sending the request.

Unsupported Resolution

The selected image size is not supported by the model.

Solution

Choose one of the officially supported output dimensions.

Generation Timeout

The request exceeded the maximum processing time.

Solution

Retry the request or reduce the number of requested images.

Warning: Extremely long prompts may increase processing time without significantly improving image quality. Focus on relevant visual details instead of unnecessary repetition.

Warning: Extremely long prompts may increase processing time without significantly improving image quality. Focus on relevant visual details instead of unnecessary repetition.

Frequently Asked Questions

Can I generate multiple images in a single request?

Yes. Use the count parameter to request multiple image variations.

Does image size affect generation time?

Generally, larger image resolutions require more processing time and computational resources.

Can I use generated images commercially?

Usage rights depend on your NovaAI subscription and applicable licensing terms. Refer to the licensing documentation for details.

Can I generate multiple images in a single request?

Yes. Use the count parameter to request multiple image variations.

Does image size affect generation time?

Generally, larger image resolutions require more processing time and computational resources.

Can I use generated images commercially?

Usage rights depend on your NovaAI subscription and applicable licensing terms. Refer to the licensing documentation for details.

Next Step

You've learned how to generate images from natural language prompts. Continue to Embeddings to discover how NovaAI converts text into vector representations for semantic search, recommendations, and retrieval-augmented generation (RAG).

Documentación relacionada

¿Te resultó útil?

¿Te resultó útil?

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