MakerPortal Gaussian Beam API

The Gaussian Beam API from MakerPortal — 1 operation(s) for gaussian beam.

GitHub OpenAPI

Operations 1

GET /api/v1/gaussian-beam Solve an ideal Gaussian laser beam: Rayleigh range, divergence, radius at a… #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/makerportal-ai:makerportal-ai-gaussian-beam-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

makerportal-ai-gaussian-beam-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MakerPortal compute Gaussian Beam API
  version: 1.0.0
  summary: Deterministic engineering solvers — the same functions that render the published pages.
  description: 'Three solvers, exposed as GET endpoints. Every one is the *identical function* that renders the corresponding page on makerportal.ai, assigned by reference in a single registry, so an answer here and an answer on the page cannot disagree.


    There is no market-data relay and no model proxy behind any of these — they are own-solver computation only, and no request leaves the function.


    Every response carries `provenance.canonicalUrl`: the published page for exactly these inputs when one exists, and the lane hub when the inputs are off the published grid.


    Numbers that are not finite are encoded as the strings "Infinity", "-Infinity" and "NaN". These are real answers, not error states: a notch is −∞ dB at its centre frequency and a low-pass is −∞ dB at Nyquist. JSON has no numeric literal for them and `null` would be a different claim, so a string sentinel is the only encoding that does not lose the answer.'
  license:
    name: Free with attribution
    url: https://makerportal.ai/terms
  contact:
    url: https://makerportal.ai/contact
servers:
- url: https://makerportal.ai
tags:
- name: Gaussian Beam
paths:
  /api/v1/gaussian-beam:
    get:
      operationId: gaussianBeam
      summary: 'Solve an ideal Gaussian laser beam: Rayleigh range, divergence, radius at a…'
      description: 'The identical function behind the worked examples on /lab/gaussian-beam-calculator, built from the same q-propagation the calculator runs. Give a wavelength and a 1/e^2 waist radius to get the Rayleigh range, the far-field half-angle divergence and the depth of focus. Add `distance` (metres from the waist) for the beam radius and phase-front curvature there. Add `focal` (millimetres) to put a thin lens at the waist and get the focused waist radius, its distance behind the lens and its Rayleigh range.


        Numbers that are not finite are encoded as the strings "Infinity", "-Infinity" and "NaN". These are real answers, not error states: a notch is −∞ dB at its centre frequency and a low-pass is −∞ dB at Nyquist. JSON has no numeric literal for them and `null` would be a different claim, so a string sentinel is the only encoding that does not lose the answer.'
      parameters:
      - name: wavelength
        in: query
        required: true
        description: Vacuum wavelength in nanometres (632.8 for HeNe, 1064 for Nd:YAG).
        schema:
          type: number
          minimum: 100
          maximum: 20000
      - name: waist
        in: query
        required: true
        description: '1/e^2 waist RADIUS in millimetres (not the diameter). At least one wavelength: the model is paraxial.'
        schema:
          type: number
          minimum: 0.0001
          maximum: 1000
      - name: distance
        in: query
        required: false
        description: Distance in metres, from the waist (or, when `focal` is given, from the lens, after it). Negative is upstream. When given, the result includes the beam radius and phase-front curvature there.
        schema:
          type: number
          minimum: -1000000
          maximum: 1000000
      - name: focal
        in: query
        required: false
        description: Focal length in millimetres of a thin lens placed at the waist. When given, the result includes the focused waist.
        schema:
          type: number
          minimum: 0.001
          maximum: 1000000
      responses:
        '200':
          description: A solved answer, with provenance.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SolverEnvelope'
              example:
                inputs:
                  wavelengthNm: 632.8
                  waistMm: 0.5
                  distanceM: 10
                  focalLengthMm: null
                result:
                  wavelengthNm: 632.8
                  waistMm: 0.5
                  rayleighM: 1.241147540135032
                  divergenceMrad: 0.40285299195420543
                  depthOfFocusM: 2.482295080270064
                  atDistance:
                    distanceM: 10
                    afterLens: false
                    radiusMm: 4.059440024516376
                    curvatureM: 10.154044721638325
                  focus: null
                provenance:
                  method: 'Complex beam parameter q propagated with ABCD matrices: q0 = i*pi*w0^2/lambda at the waist, free space [[1,d],[0,1]], thin lens [[1,0],[-1/f,1]]. The radius comes from Im(1/q) = -lambda/(pi*w^2) and the focused waist sits where Re(q) = 0. Ideal TEM00 beam, M^2 = 1, paraxial, in vacuum or air (wavelength as given). Checked against the closed-form Siegman results in the site test suite. Pure mathematics - nothing is fetched and nothing is recalled.'
                  canonicalUrl: https://makerportal.ai/lab/gaussian-beam-calculator
                license: free-with-attribution
        '400':
          description: A parameter was missing, unparseable or out of range — or the query named a parameter or include block this endpoint does not declare, or gave one twice. Never a 500.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: 'Best-effort per-instance rate limit. Not a quota: there is no shared counter, and identical requests are served from the CDN without reaching a function at all.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Gaussian Beam
components:
  schemas:
    SolverEnvelope:
      type: object
      required:
      - inputs
      - result
      - provenance
      - license
      properties:
        inputs:
          type: object
          description: The parsed inputs, echoed back with defaults filled in.
        result:
          type: object
          description: The solved analysis. Shape is per-endpoint; see the example.
        provenance:
          type: object
          required:
          - method
          - canonicalUrl
          properties:
            method:
              type: string
              description: How the answer was computed, and what its inputs are.
            canonicalUrl:
              type: string
              format: uri
              description: The published page for these exact inputs, or the lane hub when they are off-grid.
        license:
          type: string
          enum:
          - free-with-attribution
    Error:
      type: object
      required:
      - error
      - parameter
      properties:
        error:
          type: string
          description: A sentence naming what was wrong.
        parameter:
          type: string
          description: The query parameter at fault.
        valid:
          type:
          - array
          - 'null'
          items:
            type: string
          description: Every accepted value, when the parameter is an enumeration. Null otherwise.