pai
    Preparing search index...

    Function createChild

    • Makes a child key that spends this key's balance up to limit_usd (POST /key/child). No credit moves. ttl_hours defaults to 24 on the server. A child key cannot make children.

      Parameters

      • apiKey: string
      • opts: {
            limit_usd: number | null;
            rate_usd_per_min?: number | null;
            ttl_hours?: number;
        }
      • OptionalbaseUrl: string

      Returns Promise<ChildResult>