Consistent Character AI Neolemon V3
Create consistent characters in any pose with AI
~36.74s
$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) 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
POST
https://api.segmind.com/v1/consistent-character-AI-neolemon-v3Parameters
ip_imagerequiredstring (uri)Input Character reference image
Default:
"https://segmind-sd-models.s3.amazonaws.com/display_images/def_ip_image.png"promptrequiredstringText 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_scaleoptionalnumberScale for classifier-free guidance
Default:
3Range: 1 - 15heightoptionalintegerHeight of the output image
Default:
1024input_imageoptionalstring (uri)Input Pose reference image
Default:
nullnegative_promptoptionalstringNegative prompt to avoid certain elements
Default:
""seedoptionalintegerSeed for random number generation
Default:
4898558797stepsoptionalintegerNumber of denoising steps.
Default:
10Range: 1 - 70widthoptionalintegerWidth of the output image
Default:
1024Response 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