Consistent Character AI Neolemon V3

Create consistent characters in any pose with AI

~36.72s
$0.58 per generation
 1import requests
 2import json
 3
 4url = "https://api.segmind.com/v1/consistent-character-AI-neolemon-v3"
 5headers = {
 6    "x-api-key": "YOUR_API_KEY",
 7    "Content-Type": "application/json"
 8}
 9
10data = {
11    "prompt": "young man,beard, light skin, round face, large brown eyes and wavy brown hair, wearing a white t-shirt, red plaid shirt, blue jeans, and brown boots",
12    "ip_image": " https://segmind-sd-models.s3.amazonaws.com/display_images/def_ip_image.png",
13    "steps": 10,
14    "guidance_scale": 3,
15    "width": 1024,
16    "height": 1024,
17    "seed": 4898558797
18}
19
20response = requests.post(url, headers=headers, json=data)
21
22if response.status_code == 200:
23    result = response.json()
24    print(json.dumps(result, indent=2))
25else:
26    print(f"Error: {response.status_code}")
27    print(response.text)

API Endpoint

POSThttps://api.segmind.com/v1/consistent-character-AI-neolemon-v3

Parameters

ip_imagerequired
string (uri)

Input Character reference image

Default: "https://segmind-sd-models.s3.amazonaws.com/display_images/def_ip_image.png"
promptrequired
string

Text prompt for image generation

Default: "young man,beard, light skin, round face, large brown eyes and wavy brown hair, wearing a white t-shirt, red plaid shirt, blue jeans, and brown boots"
guidance_scaleoptional
number

Scale for classifier-free guidance

Default: 3Range: 1 - 15
heightoptional
integer

Height of the output image

Default: 1024
input_imageoptional
string (uri)

Input Pose reference image

Default: null
negative_promptoptional
string

Negative prompt to avoid certain elements

Default: ""
seedoptional
integer

Seed for random number generation

Default: 4898558797
stepsoptional
integer

Number of denoising steps.

Default: 10Range: 1 - 70
widthoptional
integer

Width of the output image

Default: 1024

Response Type

Returns: Image

Common Error Codes

The API returns standard HTTP status codes. Detailed error messages are provided in the response body.

400

Bad Request

Invalid parameters or request format

401

Unauthorized

Missing or invalid API key

403

Forbidden

Insufficient permissions

404

Not Found

Model or endpoint not found

406

Insufficient Credits

Not enough credits to process request

429

Rate Limited

Too many requests

500

Server Error

Internal server error

502

Bad Gateway

Service temporarily unavailable

504

Timeout

Request timed out