nsfw-api / joycaption-beta-one
- Public
- 17.7K runs
Run nsfw-api/joycaption-beta-one with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
Field | Type | Default value | Description |
---|---|---|---|
image_zip |
string
|
Input ZIP file containing images to caption
|
|
prompt |
string
|
Write a long descriptive caption for this image in a formal tone.
|
Prompt to guide the captioning (e.g., 'Write a detailed caption for this image')
|
max_new_tokens |
integer
|
512
|
Maximum number of tokens to generate
|
temperature |
number
|
0.6
Min: 0.1 Max: 2 |
Sampling temperature (higher = more random)
|
top_p |
number
|
0.9
Max: 1 |
Top-p sampling (nucleus sampling)
|
internal_batch_size |
integer
|
8
Min: 1 |
Number of images to process in a single internal GPU batch. Adjust based on VRAM.
|
{
"type": "object",
"title": "Input",
"required": [
"image_zip"
],
"properties": {
"top_p": {
"type": "number",
"title": "Top P",
"default": 0.9,
"maximum": 1,
"minimum": 0,
"x-order": 4,
"description": "Top-p sampling (nucleus sampling)"
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "Write a long descriptive caption for this image in a formal tone.",
"x-order": 1,
"description": "Prompt to guide the captioning (e.g., 'Write a detailed caption for this image')"
},
"image_zip": {
"type": "string",
"title": "Image Zip",
"format": "uri",
"x-order": 0,
"description": "Input ZIP file containing images to caption"
},
"temperature": {
"type": "number",
"title": "Temperature",
"default": 0.6,
"maximum": 2,
"minimum": 0.1,
"x-order": 3,
"description": "Sampling temperature (higher = more random)"
},
"max_new_tokens": {
"type": "integer",
"title": "Max New Tokens",
"default": 512,
"x-order": 2,
"description": "Maximum number of tokens to generate"
},
"internal_batch_size": {
"type": "integer",
"title": "Internal Batch Size",
"default": 8,
"minimum": 1,
"x-order": 5,
"description": "Number of images to process in a single internal GPU batch. Adjust based on VRAM."
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "string",
"title": "Output"
}