Netwrck logo Netwrck
Netwrck > Tools > API Documentation > RA1 Art Generator

RA1 Art Generator API

The RA1 Art Generator API provides programmatic access to our advanced AI image generation system. Generate high-quality AI images based on text prompts using cutting-edge AI models. Perfect for creative projects, marketing materials, and applications.

Quick Start

Generate your first AI image in 30 seconds

Get Your API Key

Sign in to your account to get your API key and see it automatically filled in all code examples.

Don't have an account? Sign up for free

import requests

# Generate your first AI image
response = requests.post(
    "https://netwrck.com/api/ra1-art-generator",
    json={
        "api_key": "YOUR_API_KEY",
        "prompt": "A majestic mountain landscape at sunset, photorealistic",
        "size": "1024x1024"
    }
)

result = response.json()
print(f"Image generated: {result['image_url']}")
print(f"Cost: ${result['cost']}")
// Generate your first AI image
fetch('https://netwrck.com/api/ra1-art-generator', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    api_key: 'YOUR_API_KEY',
    prompt: 'A majestic mountain landscape at sunset, photorealistic',
    size: '1024x1024'
  })
})
.then(res => res.json())
.then(result => {
  console.log('Image generated:', result.image_url);
  console.log('Cost: $' + result.cost);
})
.catch(error => console.error('Error:', error));
# Generate your first AI image
curl -X POST https://netwrck.com/api/ra1-art-generator \
  -H 'Content-Type: application/json' \
  -d '{
    "api_key": "YOUR_API_KEY",
    "prompt": "A majestic mountain landscape at sunset, photorealistic",
    "size": "1024x1024"
  }'

Authentication

All API requests require your API key. Sign in to get your API key and see it automatically filled in all code examples.

{
  "api_key": "YOUR_API_KEY"
}

Pricing & Credits

Cost Per Image

$0.04 USD

Per successful generation

Billing Policy

Success: Charged $0.04

Failed: No charge

Only pay for successful generations

API Reference

POST /api/ra1-art-generator

Generate high-quality AI images from text descriptions

๐Ÿ“ Request Format

Send a POST request with a JSON body containing these parameters:

ParameterTypeRequiredDescription
api_key string Required Your API key for authentication.
prompt string Required Text description of the image you want to generate. Be detailed for best results. Max 1000 characters.
size string Optional Image size in widthxheight format. Default: "1024x1024". Supported sizes:
  • 1024x1024 (Square)
  • 1152x768 (Landscape 3:2)
  • 768x1152 (Portrait 2:3)
  • 1152x864 (Landscape 4:3)
  • 864x1152 (Portrait 3:4)
  • 1360x768 (Widescreen 16:9)
  • 768x1360 (Tall 9:16)

Testing Endpoint (No Authentication Required)

POST /api/ra1-unauthed

Test RA1 image generation without API key or payment (for development/testing)

๐Ÿงช Testing Only

This endpoint is for testing and development purposes only. No authentication or payment required.

Note: Returns test results instead of actual image generation. No cost incurred.

๐Ÿ“ Request Format (Testing)

Send a POST request with a JSON body. No API key required:

ParameterTypeRequiredDescription
prompt string Required Text description of the image you want to generate. Max 1000 characters.
size string Optional Image size. Default: "1024x1024". Same options as main endpoint.
import requests

# Test RA1 generation without authentication
response = requests.post(
    "http://localhost:8776/api/ra1-unauthed",
    json={
        "prompt": "A cyberpunk cityscape at night, neon lights",
        "size": "1024x1024"
    }
)

result = response.json()
print(f"Test result: {result['success']}")
print(f"Final prompt: {result['final_prompt']}")
// Test RA1 generation without authentication
fetch('http://localhost:8776/api/ra1-unauthed', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    prompt: 'A cyberpunk cityscape at night, neon lights',
    size: '1024x1024'
  })
})
.then(res => res.json())
.then(result => {
  console.log('Test result:', result.success);
  console.log('Final prompt:', result.final_prompt);
})
.catch(error => console.error('Error:', error));
# Test RA1 generation without authentication
curl -X POST http://localhost:8776/api/ra1-unauthed \
  -H 'Content-Type: application/json' \
  -d '{
    "prompt": "A cyberpunk cityscape at night, neon lights",
    "size": "1024x1024"
  }'

Response Examples

Success Response (200 OK)

When your image is successfully generated, you'll receive:

{
  "image_url": "https://netwrckstatic.netwrck.com/static/uploads/ai/art-generator.webp",
  "prompt_used": "A futuristic city with flying cars and neon lights, hyperrealistic, 8k",
  "size_used": "1360x768",
  "cost": "0.04"
}

Error Responses

If something goes wrong, you'll receive one of these error responses:

401 Unauthorized

{
  "error": "Invalid API key",
  "status": 401
}

Check your API key is correct

402 Payment Required

{
  "error": "Insufficient credits",
  "status": 402
}

Add more credits to your account

400 Bad Request

{
  "error": "Prompt is required",
  "status": 400
}

Check your request parameters

500 Server Error

{
  "error": "Internal server error",
  "status": 500
}

Try again in a moment

Pro Tips for Better Results

Prompt Writing

  • Be specific and descriptive
  • Include style keywords like "photorealistic", "digital art"
  • Mention lighting: "golden hour", "studio lighting"
  • Add composition: "close-up", "wide angle", "aerial view"

Size Selection

  • 1024x1024 - Social media posts
  • 1360x768 - Website banners
  • 768x1360 - Mobile wallpapers
  • 1152x864 - Presentations

Example Great Prompts

"A cozy coffee shop interior, warm lighting, vintage furniture, steam rising from coffee cup, photorealistic, highly detailed"

"Futuristic cyberpunk city at night, neon signs, rain-soaked streets, flying cars, blade runner style, cinematic lighting"

"Portrait of a wise old wizard, long white beard, blue robes, magical staff, fantasy art style, detailed character design"

Welcome Back to Netwrck



Don't have an account? Sign up here

Join Netwrck - AI Art & Chat

Create AI art, search the web, generate videos and edit photos. Get started with your free account today!



Already have an account? Login here

Netwrck Unlimited

Voice Chat - Character Creation - Art Generation

30 day Money Back Guarantee.


Art Generator Settings


Resolution
Aesthetic Elf Styles
Anime Anime
Photographic Photographic
Digital Art Digital Art
Comic Book Comic Book
Fantasy Art Fantasy Art
Neon Punk Neon Punk
Knight Knight
Ethereal Ethereal
Low Poly Low Poly
Stunning Stunning
Line Art Line Art
Cinematic Cinematic
Wanderer Wanderer
Beggar Beggar
Seductive Seductive
Warrior Warrior
Steampunk Steampunk
Japanese Japanese
Western Western
Handsome Handsome
Pop art Pop art
Abstract Abstract
Impressionist Impressionist
Fauvist Fauvist
Beauty grace Beauty grace
Evil Evil
God God
Demon Demon
Masculine Masculine
Feminine Feminine
Majestic Majestic
Mage Mage
Princess Princess
King King
Sweet Sweet
Fantasy Fantasy

AI Generated Images


Community Images


New AI

person
This is what your AI will say when someone first chats with them
Help others understand what your AI character is about

AI Settings

Audio Settings

Art Generation

When enabled, AI can automatically generate art based on conversations

High Resolution

Creating Video

No AI characters found.

Help Everyone Know You

person

Share Image

Consider our affiliate program to earn!

Copy

Share on Reddit Reddit

Share on Twitter Twitter

Share on Facebook Facebook

NETW Coin is live!

AI should be owned by everyone.
So we are building a new AI economy together.
Thank you for being on this journey with us!
Read More

Netwrck Android App

Our Android App Is Available Now - Please Check it out!

AI Characters in room

Search Characters