数据来源:北京国际大数据交易所
---
title: total v1.0.0
language_tabs:
- shell: Shell
- http: HTTP
- javascript: JavaScript
- ruby: Ruby
- python: Python
- php: PHP
- java: Java
- go: Go
toc_footers: []
includes: []
search: true
code_clipboard: true
highlight_theme: darkula
headingLevel: 2
generator: "@tarslib/widdershins v4.0.17"
---
# total
> v1.0.0
Base URLs:
* <a href="https://fjcs.xyz/QRapi/api/v1">超数: https://fjcs.xyz/QRapi/api/v1</a>
# stable diffussion
## POST 生成请求
POST /QRcode/generate
> Body 请求参数
```yaml
str_message: string
prompt: string
model: string
url: string
sdmodelcheckpoint: string
sampler_name: string
lora: string
type: string
modelType: string
```
### 请求参数
|名称|位置|类型|必选|说明|
|---|---|---|---|---|
|Authorization|header|string| 是 |tk令牌|
|body|body|object| 否 |none|
|» str_message|body|string| 否 |none|
|» prompt|body|string| 否 |正向描述词,生成二维码时,如果url传值了可不使用描述词|
|» model|body|string| 否 |none|
|» url|body|string| 否 |仅type为upload_file二维码时生效,待生成的二维码地址,公网可访问|
|» sdmodelcheckpoint|body|string| 否 |模型的选项,仅type为upload_txt、upload_cloth时生效,可选值:animec、real、cartoon、guofeng、lux、animedark、rockColor|
|» sampler_name|body|string| 否 |采样方法,euler、fast、clear、hard、csextra|
|» lora|body|string| 否 |附带的lora|
|» type|body|string| 是 |生成类型,upload_txt为文生图,upload_file二维码,upload_cloth汉服|
|» modelType|body|string| 否 |仅type为upload_file二维码时生效,二维码的风格|
> 返回示例
> 200 Response
```json
{}
```
### 返回结果
|状态码|状态码含义|说明|数据模型|
|---|---|---|---|
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|成功|Inline|
### 返回数据结构
## GET 获取临时测试tk
GET /test
### 请求参数
|名称|位置|类型|必选|说明|
|---|---|---|---|---|
|key|query|string| 是 |none|
> 返回示例
> 成功
```json
{
"code": 200,
"message": "成功",
"data": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6InRlc3QiLCJ1c2VyX25hbWUiOiLmtYvor5XotKblj7ciLCJleHAiOjE3MDY1MjY5NzQsImlzcyI6Inp4Y3ZiIn0.4u2Nx235LoOFyNwYEWRRWEOjIq4I0iqEhtJjX-xlNHA"
}
```
### 返回结果
|状态码|状态码含义|说明|数据模型|
|---|---|---|---|
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|成功|Inline|
### 返回数据结构
## GET 查询生成任务
GET /QRcode/queue-status
### 请求参数
|名称|位置|类型|必选|说明|
|---|---|---|---|---|
|id|query|string| 是 |任务id,只保留5分钟内的结果|
> 返回示例
> 200 Response
```json
{}
```
### 返回结果
北京国际大数据交易所
---
title: total v1.0.0
language_tabs:
- shell: Shell
- http: HTTP
- javascript: JavaScript
- ruby: Ruby
- python: Python
- php: PHP
- java: Java
- go: Go
toc_footers: []
includes: []
search: true
code_clipboard: true
highlight_theme: darkula
headingLevel: 2
generator: "@tarslib/widdershins v4.0.17"
---
# total
> v1.0.0
Base URLs:
* <a href="https://fjcs.xyz/QRapi/api/v1">超数: https://fjcs.xyz/QRapi/api/v1</a>
# stable diffussion
## POST 生成请求
POST /QRcode/generate
> Body 请求参数
```yaml
str_message: string
prompt: string
model: string
url: string
sdmodelcheckpoint: string
sampler_name: string
lora: string
type: string
modelType: string
```
### 请求参数
|名称|位置|类型|必选|说明|
|---|---|---|---|---|
|Authorization|header|string| 是 |tk令牌|
|body|body|object| 否 |none|
|» str_message|body|string| 否 |none|
|» prompt|body|string| 否 |正向描述词,生成二维码时,如果url传值了可不使用描述词|
|» model|body|string| 否 |none|
|» url|body|string| 否 |仅type为upload_file二维码时生效,待生成的二维码地址,公网可访问|
|» sdmodelcheckpoint|body|string| 否 |模型的选项,仅type为upload_txt、upload_cloth时生效,可选值:animec、real、cartoon、guofeng、lux、animedark、rockColor|
|» sampler_name|body|string| 否 |采样方法,euler、fast、clear、hard、csextra|
|» lora|body|string| 否 |附带的lora|
|» type|body|string| 是 |生成类型,upload_txt为文生图,upload_file二维码,upload_cloth汉服|
|» modelType|body|string| 否 |仅type为upload_file二维码时生效,二维码的风格|
> 返回示例
> 200 Response
```json
{}
```
### 返回结果
|状态码|状态码含义|说明|数据模型|
|---|---|---|---|
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|成功|Inline|
### 返回数据结构
## GET 获取临时测试tk
GET /test
### 请求参数
|名称|位置|类型|必选|说明|
|---|---|---|---|---|
|key|query|string| 是 |none|
> 返回示例
> 成功
```json
{
"code": 200,
"message": "成功",
"data": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6InRlc3QiLCJ1c2VyX25hbWUiOiLmtYvor5XotKblj7ciLCJleHAiOjE3MDY1MjY5NzQsImlzcyI6Inp4Y3ZiIn0.4u2Nx235LoOFyNwYEWRRWEOjIq4I0iqEhtJjX-xlNHA"
}
```
### 返回结果
|状态码|状态码含义|说明|数据模型|
|---|---|---|---|
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|成功|Inline|
### 返回数据结构
## GET 查询生成任务
GET /QRcode/queue-status
### 请求参数
|名称|位置|类型|必选|说明|
|---|---|---|---|---|
|id|query|string| 是 |任务id,只保留5分钟内的结果|
> 返回示例
> 200 Response
```json
{}
```
### 返回结果
扫码关注微信号
扫码关注公众号
咨询服务热线