Fotor OpenAPI
  1. AI Editor SDK
Fotor OpenAPI
  • Getting Started
    • Introduction
    • Access and Authentication
    • For Serverless Clients
    • Token Consumption
  • Reference
    • AI Upscaler
      POST
    • AI Skin Retouch
      POST
    • Text to Image
      POST
    • Image to Image (AI Art Effects)
      POST
    • Background Remover
      POST
    • AI Headshot
      POST
    • Photo Colorize
      POST
    • Photo Restoration
      POST
    • Face Swap
      POST
    • AI Replace
      POST
    • Query Task Details
      GET
  • Webhook
    • Webhook
  • AI Editor SDK
    • Getting Started
    • Get Sdk Temporary Token
      GET
  1. AI Editor SDK

Get Sdk Temporary Token

Developing
GET
/v1/aiart/credentials

Request

Query Params
timeout
integer 
optional
Specifies the validity period of the temporary credentials in seconds. In this example, timeout=100000 means the credentials will be valid for 100,000 seconds.
Example:
100000

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api-b.fotor.com/v1/aiart/credentials?timeout=100000'

Responses

🟢200成功
application/json
Body
code
string 
required
msg
string 
required
data
object 
required
token
string 
required
expire
integer 
required
Example
{
  "code": "000",
  "msg": "success",
  "data": {
    "token": "tp_a856e209e112461a8875af62285a888f",
    "expire": 1741323814784
  }
}
Previous
Getting Started
Built with