Primeros pasos

Genera tu primera imagen con IA

Aprende a generar imágenes de alta calidad utilizando indicaciones de texto sencillas.

Learn how to generate your first AI image using the NovaAI Image Generation API. This guide walks through creating an image from a text prompt, customizing the output, and understanding the response.

Overview

NovaAI can generate original images from natural language descriptions. Simply provide a prompt, choose a model and image size, and the API returns one or more generated images.

In this guide, you'll create your first image in just a few steps.

Estimated time: 10 minutes

Prerequisites

Before you begin, ensure you have:

  • Installed the NovaAI SDK

  • Configured your API key

  • Completed Authentication

  • A JavaScript project

Tip: The more descriptive your prompt is, the more accurate the generated image will be.

Tip: The more descriptive your prompt is, the more accurate the generated image will be.

1

Create an Image Request

Create a new file named generate-image.js and initialize the NovaAI client.

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 city skyline at sunset with flying vehicles and cinematic lighting.",
size: "1024x1024"
});
 
console.log(image.data[0].url);

After running the script, NovaAI returns a URL pointing to the generated image.

1

Create an Image Request

Create a new file named generate-image.js and initialize the NovaAI client.

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 city skyline at sunset with flying vehicles and cinematic lighting.",
size: "1024x1024"
});
 
console.log(image.data[0].url);

After running the script, NovaAI returns a URL pointing to the generated image.

2

Improve Your Prompt

Well-structured prompts typically produce better results.

A cozy Scandinavian living room with natural sunlight, oak furniture, indoor plants, soft neutral colors, minimalist interior design, ultra realistic photography.

Adding details about style, lighting, colors, and composition helps the model generate more accurate images.

2

Improve Your Prompt

Well-structured prompts typically produce better results.

A cozy Scandinavian living room with natural sunlight, oak furniture, indoor plants, soft neutral colors, minimalist interior design, ultra realistic photography.

Adding details about style, lighting, colors, and composition helps the model generate more accurate images.

3

Choose the Right Image Size

3

Choose the Right Image Size

Resolution

Best For

512 × 512

Icons and thumbnails

1024 × 1024

General-purpose image generation

1024 × 1536

Portrait illustrations

1536 × 1024

Landscape artwork

1920 × 1080

Banners and presentations

Choose a resolution that matches your application's requirements.

Image Generation Workflow

Rendering diagram…

Example Output

Image Prompt

Copiar indicador

Image Prompt

Copiar indicador

Best Practices

  • Describe the subject clearly.

  • Include lighting and artistic style.

  • Choose the correct image dimensions.

  • Generate multiple variations when exploring ideas.

  • Refine prompts instead of rewriting them completely.

Small prompt adjustments often produce significantly different results. Experiment with descriptive details such as perspective, color palette, mood, and composition.

Small prompt adjustments often produce significantly different results. Experiment with descriptive details such as perspective, color palette, mood, and composition.

Completed

Congratulations!

You've successfully generated your first AI image with NovaAI.

¿Te resultó útil?

¿Te resultó útil?

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