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

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"
    }
  }
}