Retrieve the Runway account features

Table of contents

  1. Request Headers
  2. Query Parameters
  3. Responses
  4. Model
  5. Examples
  6. Try It

Retrieve account credits information and other details.

https://api.useapi.net/v1/runwayml/features/?…

Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
Query Parameters
  • email is optional when only one account configured. However, if you have multiple accounts configured, this parameter becomes
Responses
  • 200 OK

    The response below has been omitted for brevity to include only essential fields, the live endpoint will return a much larger response.

    {
        "permitted": {
            "storageGB": 500,
            "numPlanCredits": 2250
        },
        "used": {
            "numPlanCredits": 1315
        }
    }
    
  • 400 Bad Request

    {
        "error": "<Error message>",
        "code": 400
    }
    
  • 401 Unauthorized

    {
      "error": "Unauthorized",
      "code": 401
    }
    
Model

The model below has been omitted for brevity to include only essential fields, the live endpoint will return many more fields.

{ // TypeScript, all fields are optional
  permitted: {
      storageGB: number,
      numPlanCredits: number
  },
  used: {
      numPlanCredits: number
  }
}
Examples
  • curl "https://api.useapi.net/v1/runwayml/features/" \
       -H "Accept: application/json" \
       -H "Authorization: Bearer …" 
    
  • const token = "API token";
    const email = "Previously configured email"; 
    const apiUrl = `https://api.useapi.net/v1/runwayml/features/?email=${email}`; 
    const response = await fetch(apiUrl, {
      headers: {
        "Authorization": `Bearer ${token}`,
      },
    });
    const result = await response.json();
    console.log("response", {response, result});
    
  • import requests
    token = "API token"
    email = "Previously configured email"
    apiUrl = f"https://api.useapi.net/v1/runwayml/features/?email={email}"
    headers = {
        "Content-Type": "application/json", 
        "Authorization" : f"Bearer {token}"
    }
    response = requests.get(apiUrl, headers=headers)
    print(response, response.json())
    
Try It