datong-new
/
idphoto
- Public
- 375 runs
Run datong-new/idphoto 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 |
string
|
Upload image
|
|
image_template |
string
|
Upload template image
|
|
hair_change |
boolean
|
True
|
change hair of template or not
|
seed |
integer
|
0
Max: 100000 |
seed
|
type |
string
(enum)
|
大一寸
Options: 小一寸, 一寸, 大一寸, 小两寸, 两寸, 大两寸, 三寸, 四寸, 在职研究生考试, 普通话水平测试 |
type of id photo
|
height |
integer
|
Min: 200 Max: 2000 |
height
|
width |
integer
|
Min: 200 Max: 2000 |
width
|
{
"type": "object",
"title": "Input",
"required": [
"image",
"image_template"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"default": 0,
"maximum": 100000,
"minimum": 0,
"x-order": 3,
"description": "seed"
},
"type": {
"enum": [
"\u5c0f\u4e00\u5bf8",
"\u4e00\u5bf8",
"\u5927\u4e00\u5bf8",
"\u5c0f\u4e24\u5bf8",
"\u4e24\u5bf8",
"\u5927\u4e24\u5bf8",
"\u4e09\u5bf8",
"\u56db\u5bf8",
"\u5728\u804c\u7814\u7a76\u751f\u8003\u8bd5",
"\u666e\u901a\u8bdd\u6c34\u5e73\u6d4b\u8bd5"
],
"type": "string",
"title": "type",
"description": "type of id photo",
"default": "\u5927\u4e00\u5bf8",
"x-order": 4
},
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 0,
"description": "Upload image"
},
"width": {
"type": "integer",
"title": "Width",
"maximum": 2000,
"minimum": 200,
"x-order": 6,
"description": "width"
},
"height": {
"type": "integer",
"title": "Height",
"maximum": 2000,
"minimum": 200,
"x-order": 5,
"description": "height"
},
"hair_change": {
"type": "boolean",
"title": "Hair Change",
"default": true,
"x-order": 2,
"description": "change hair of template or not"
},
"image_template": {
"type": "string",
"title": "Image Template",
"format": "uri",
"x-order": 1,
"description": "Upload template image"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "object",
"title": "Output",
"required": [
"images"
],
"properties": {
"images": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Images"
}
}
}