POST/v1/sdxl1.0-samaritan-3d
1const axios = require('axios');
2
3
4const api_key = "YOUR API-KEY";
5const url = "https://api.segmind.com/v1/sdxl1.0-samaritan-3d";
6
7const data = {
8  "prompt": "3D cinematic film.(Bob Marley:2.0) 50 years old (caricature:0.2). bokeh, professional, 4k, highly detailed, drunk. tired. concert lights.",
9  "negative_prompt": "drawing, painting, crayon, sketch, graphite, impressionist, noisy, blurry, soft, deformed, ugly. young. long neck. (cross eyed:1.5). multiple characters",
10  "samples": 1,
11  "scheduler": "Euler a",
12  "num_inference_steps": 25,
13  "guidance_scale": 7.5,
14  "seed": 4896513168,
15  "img_width": 1024,
16  "img_height": 1024,
17  "base64": false
18};
19
20(async function() {
21    try {
22        const response = await axios.post(url, data, { headers: { 'x-api-key': api_key } });
23        console.log(response.data);
24    } catch (error) {
25        console.error('Error:', error.response.data);
26    }
27})();
RESPONSE
image/jpeg
HTTP Response Codes
200 - OKImage Generated
401 - UnauthorizedUser authentication failed
404 - Not FoundThe requested URL does not exist
405 - Method Not AllowedThe requested HTTP method is not allowed
406 - Not AcceptableNot enough credits
500 - Server ErrorServer had some issue with processing
Expand

Attributes


promptstr *

Prompt to render


negative_promptstr ( default: None )

Prompts to exclude, eg. 'bad anatomy, bad hands, missing fingers'


samplesint ( default: 1 ) Affects Pricing

Number of samples to generate.

min : 1,

min : 4


schedulerenum:str ( default: Euler a )

Type of scheduler.

Allowed values:


num_inference_stepsint ( default: 30 ) Affects Pricing

Number of denoising steps.

min : 20,

min : 100


guidance_scalefloat ( default: 7.5 )

Scale for classifier-free guidance

min : 1,

min : 25


seedint ( default: -1 )

Seed for image generation.

min : -1,

min : 999999999999999


img_widthenum:int ( default: 1024 ) Affects Pricing

Can only be 1024 for SDXL

Allowed values:


img_heightenum:int ( default: 1024 ) Affects Pricing

Can only be 1024 for SDXL

Allowed values:


base64boolean ( default: 1 )

Base64 encoding of the output image.

To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.

Samaritan 3D XL is an exceptional AI model designed to breathe life into the world of 3D cartoon characters. Based on the powerful SDXL framework, this model specializes in creating adorable cartoon characters, each brimming with a range of emotions. It's a perfect tool for animators, game developers, digital artists, and anyone passionate about bringing cartoon characters to life in a 3D space.

At its core, Samaritan 3D XL leverages the robust capabilities of the SDXL framework, ensuring high-quality, detailed 3D character renderings. This model is fine-tuned to capture the essence of cartoon characters, from their whimsical designs to their expressive emotions.

Key Features:

  1. 3D Cartoon Character Creation : Specializes in generating cute and expressive cartoon characters in 3D.

  2. Emotional Range:Capable of depicting a wide variety of emotions, adding depth and personality to characters.

  3. High-Quality Rendering: Produces detailed and visually appealing 3D characters, thanks to its SDXL base.

  4. Creative Flexibility: Offers endless possibilities for character design and storytelling.

Applications:

  1. Animation and Film: Create unique and expressive characters for animated movies and series.

  2. Video Game Development: Design engaging 3D characters for video games, enhancing player experience.

  3. Digital Art: Combine photographic elements with artistic prompts for unique compositions.

  4. Educational Content: Develop fun and engaging educational materials featuring cartoon characters.

  5. Personal Projects: Bring your imaginative cartoon characters to life for personal enjoyment or online sharing.