Multimodal Chat
Chat completion and image generation capabilities, including vision-enhanced chat and text-to-image generation.
POST /19/chat/completions
Required attributes
- Name
messages
- Type
- array
- Description
- Name
model
- Type
- string
- Description
Optional attributes
- Name
temperature
- Type
- number
- Description
Temperature for text generation
Default:
0.5
- Name
max_tokens
- Type
- integer
- Description
Max tokens for text generation
Default:
500
- Name
top_p
- Type
- number
- Description
Top P for text generation
Default:
0.5
- Name
stream
- Type
- boolean
- Description
Stream for text generation
Default:
false
Request
curl -X POST "https://api.bitmind.ai/oracle/v1/19/chat/completions" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{
"messages": [],
"temperature": 0.5,
"max_tokens": 500,
"model": "",
"top_p": 0.5,
"stream": false
}'
Response
{
"choices": [
{
"index": 0,
"finish_reason": "stop",
"message": {
"content": "The capital of France is Paris.",
"role": "assistant"
}
}
],
"usage": {
"prompt_tokens": 7,
"completion_tokens": 8,
"total_tokens": 15
}
}
POST /19/completions
Required attributes
- Name
prompt
- Type
- string
- Description
- Name
model
- Type
- string
- Description
Optional attributes
- Name
temperature
- Type
- number
- Description
Temperature for text generation
Default:
0.5
- Name
max_tokens
- Type
- integer
- Description
Max tokens for text generation
Default:
50
- Name
top_p
- Type
- number
- Description
Top P for text generation
Default:
0.5
- Name
stream
- Type
- boolean
- Description
Stream for text generation
Default:
false
Request
curl -X POST "https://api.bitmind.ai/oracle/v1/19/completions" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{
"prompt": "",
"temperature": 0.5,
"max_tokens": 50,
"model": "",
"top_p": 0.5,
"stream": false
}'
Response
{
"choices": [
{
"index": 0,
"finish_reason": "stop",
"message": {
"content": " Java, which is used by 22% of respondents. \n\nThe most loved programming language is Java, which is used by 22% of respondents.\nThe second most loved programming language is Python, with 17% of the vote. \nThe",
"role": "assistant"
}
}
],
"usage": {
"prompt_tokens": 9,
"completion_tokens": 50,
"total_tokens": 59
}
}
POST /19/text-to-image
Required attributes
- Name
prompt
- Type
- string
- Description
Prompt for image generation
- Name
model
- Type
- string
- Description
Optional attributes
- Name
negative_prompt
- Type
- string
- Description
Negative prompt for image generation
- Name
steps
- Type
- integer
- Description
Number of inference steps, higher for more quality but increased generation time
Default:
8
- Name
cfg_scale
- Type
- number
- Description
Guidance scale
Default:
3
- Name
width
- Type
- integer
- Description
Width for image generation
Default:
1024
- Name
height
- Type
- integer
- Description
Height for image generation
Default:
1024
Request
curl -X POST "https://api.bitmind.ai/oracle/v1/19/text-to-image" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{
"prompt": "",
"negative_prompt": "",
"steps": 8,
"cfg_scale": 3,
"width": 1024,
"height": 1024,
"model": ""
}'
Response
{
"image_b64": "[base64 image data]"
}
POST /19/image-to-image
Required attributes
- Name
init_image
- Type
- string
- Description
URL for image
- Name
prompt
- Type
- string
- Description
- Name
model
- Type
- string
- Description
Optional attributes
- Name
negative_prompt
- Type
- string
- Description
Negative prompt for image generation
- Name
steps
- Type
- integer
- Description
Number of inference steps, higher for more quality but increased generation time
Default:
10
- Name
cfg_scale
- Type
- number
- Description
Guidance scale
Default:
3
- Name
width
- Type
- integer
- Description
Width for image generation
Default:
1024
- Name
height
- Type
- integer
- Description
Height for image generation
Default:
1024
- Name
image_strength
- Type
- number
- Description
Image strength of the generated image with respect to the original image
Default:
0.5
Request
curl -X POST "https://api.bitmind.ai/oracle/v1/19/image-to-image" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{
"init_image": "",
"prompt": "",
"negative_prompt": "",
"steps": 10,
"cfg_scale": 3,
"width": 1024,
"height": 1024,
"model": "",
"image_strength": 0.5
}'
Response
{
"image_b64": "[base64 image data]"
}
POST /19/avatar
Required attributes
- Name
prompt
- Type
- string
- Description
Prompt for avatar generation
- Name
init_image
- Type
- string
- Description
URL for image
Optional attributes
- Name
negative_prompt
- Type
- string
- Description
Negative prompt for avatar generation
- Name
steps
- Type
- integer
- Description
Steps for avatar generation
Default:
10
- Name
cfg_scale
- Type
- number
- Description
CFG scale for avatar generation
Default:
3
- Name
width
- Type
- integer
- Description
Width for avatar generation
Default:
1024
- Name
height
- Type
- integer
- Description
Height for avatar generation
Default:
1024
- Name
ipadapter_strength
- Type
- number
- Description
Image Adapter Strength for avatar generation
Default:
0.5
- Name
control_strength
- Type
- number
- Description
Control Strength for avatar generation
Default:
0.5
Request
curl -X POST "https://api.bitmind.ai/oracle/v1/19/avatar" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{
"prompt": "",
"negative_prompt": "",
"steps": 10,
"cfg_scale": 3,
"width": 1024,
"height": 1024,
"ipadapter_strength": 0.5,
"control_strength": 0.5,
"init_image": ""
}'
Response
{
"image_b64": "[base64 image data]"
}
Last updated: April 24, 2025