
andreasjansson / image-to-photorealism
- Public
- 237 runs
Run andreasjansson/image-to-photorealism 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 |
---|
{
"type": "object",
"title": "Input",
"required": [
"image"
],
"properties": {
"mode": {
"enum": [
"flux_kontext",
"gpt_image"
],
"type": "string",
"title": "mode",
"description": "Processing mode",
"default": "flux_kontext",
"x-order": 1
},
"seed": {
"type": "integer",
"title": "Seed",
"x-order": 3,
"description": "Random seed for reproducible generation"
},
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 0,
"description": "Input image to upscale and convert to photorealistic"
},
"openai_api_key": {
"type": "string",
"title": "Openai Api Key",
"format": "password",
"x-order": 4,
"writeOnly": true,
"description": "OpenAI API key (required for gpt_image mode)",
"x-cog-secret": true
},
"apply_color_matching": {
"type": "boolean",
"title": "Apply Color Matching",
"default": false,
"x-order": 2,
"description": "Apply color matching to match original image colors"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Output"
}