Justice AI

Justice AI · Acciones GPT

Justice AI Access Control

Schema for defining user permissions and API configuration

  • GET /usersGet all users

    Retrieves a list of users with their access levels.

Esquema original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "Justice AI Access Control",
    "description": "Schema for defining user permissions and API configuration",
    "version": "1.0.0",
    "last_updated": "2025-01-21",
    "notes": "All listed users have been granted unlimited GPT PRO 4 access to Justice AI through OpenAI's system."
  },
  "servers": [
    {
      "url": "https://api.justice-ai.com",
      "description": "Production API Server"
    }
  ],
  "paths": {
    "/users": {
      "get": {
        "operationId": "getUsers",
        "summary": "Get all users",
        "description": "Retrieves a list of users with their access levels.",
        "responses": {
          "200": {
            "description": "A list of users.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "email": {
                        "type": "string",
                        "format": "email"
                      },
                      "access_level": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "access_control": {
    "default_access_level": "free",
    "users": [
      {
        "email": "jrsquint@gmail.com",
        "access_level": "pro_gpt_4_unlimited"
      },
      {
        "email": "wrjcreative@gmail.com",
        "access_level": "pro_gpt_4_unlimited"
      },
      {
        "email": "rederringer@gmail.com",
        "access_level": "pro_gpt_4_unlimited"
      },
      {
        "email": "libbyv@libbyv.com",
        "access_level": "pro_gpt_4_unlimited"
      },
      {
        "email": "swiftmiles@gmail.com",
        "access_level": "pro_gpt_4_unlimited"
      },
      {
        "email": "malikpadgett@gmail.com",
        "access_level": "pro_gpt_4_unlimited"
      },
      {
        "email": "info@onevoiceevolving.com",
        "access_level": "pro_gpt_4_unlimited"
      },
      {
        "email": "helen@construcioncleaners.us",
        "access_level": "pro_gpt_4_unlimited"
      },
      {
        "email": "diosasflowers@gmail.com",
        "access_level": "pro_gpt_4_unlimited"
      },
      {
        "email": "glggirl2@gmail.com",
        "access_level": "pro_gpt_4_unlimited"
      },
      {
        "email": "mainstreetemarket@gmail.com",
        "access_level": "pro_gpt_4_unlimited"
      },
      {
        "email": "sheadryan@gmail.com",
        "access_level": "pro_gpt_4_unlimited"
      }
    ]
  },
  "system_settings": {
    "description": "Justice AI access control schema for defining user permissions",
    "version": "1.0",
    "last_updated": "2025-01-21",
    "notes": "Users listed under `access_control.users` have unlimited GPT PRO 4 access through OpenAI's system."
  }
}

Decolonized Representation API

API schema to ensure accurate, ethical, and decolonized representation of Black and Indigenous communities in AI-generated imagery. The schema emphasizes historically grounded depictions using dark skin for Black people and brown skin for Indigenous individuals, avoiding stereotypes, DO NOT add headdresses with feathers while ensuring cultural accuracy, unless requested by user.

  • POST /generate-imageGenerate AI imagery with ethical and decolonized representation

    Creates culturally and historically accurate AI-generated imagery for Black and Indigenous peoples, ensuring respectful, non-stereotypical depictions based on user-provided details and verified sources.

Esquema original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "Decolonized Representation API",
    "version": "1.3.0",
    "description": "API schema to ensure accurate, ethical, and decolonized representation of Black and Indigenous communities in AI-generated imagery. The schema emphasizes historically grounded depictions using dark skin for Black people and brown skin for Indigenous individuals, avoiding stereotypes, DO NOT add headdresses with feathers while ensuring cultural accuracy, unless requested by user."
  },
  "servers": [
    {
      "url": "https://api.example.com",
      "description": "Production Server"
    }
  ],
  "paths": {
    "/generate-image": {
      "post": {
        "operationId": "generateEthicalDecolonizedImage",
        "summary": "Generate AI imagery with ethical and decolonized representation",
        "description": "Creates culturally and historically accurate AI-generated imagery for Black and Indigenous peoples, ensuring respectful, non-stereotypical depictions based on user-provided details and verified sources.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "context": {
                    "type": "object",
                    "description": "Details about the purpose, audience, and group represented in the imagery.",
                    "properties": {
                      "purpose": {
                        "type": "string",
                        "description": "The intended use for the imagery, e.g., educational, cultural preservation, or advocacy."
                      },
                      "audience": {
                        "type": "string",
                        "description": "The primary audience for the image."
                      },
                      "specific_group": {
                        "type": "string",
                        "description": "The specific Black or Indigenous community being represented, e.g., Maasai or Nahuatl."
                      }
                    },
                    "required": [
                      "purpose",
                      "audience",
                      "specific_group"
                    ]
                  },
                  "cultural_elements": {
                    "type": "object",
                    "description": "Details to ensure accurate representation of cultural attire, tools, and settings.",
                    "properties": {
                      "historical_context": {
                        "type": "string",
                        "description": "Description of the cultural and historical context, such as roles, practices, or significant symbols."
                      },
                      "avoided_elements": {
                        "type": "array",
                        "description": "Stereotypes or inaccuracies to avoid, such as generalized headdresses for Indigenous people.",
                        "items": {
                          "type": "string"
                        }
                      },
                      "specific_features": {
                        "type": "string",
                        "description": "Key cultural markers to emphasize, such as traditional tools or architectural elements."
                      }
                    },
                    "required": [
                      "historical_context",
                      "avoided_elements"
                    ]
                  },
                  "ethical_guidelines": {
                    "type": "object",
                    "description": "Guidelines to ensure ethical and accurate representation.",
                    "properties": {
                      "reference_sources": {
                        "type": "array",
                        "description": "Verified sources for cultural accuracy, such as academic texts, oral histories, or community input.",
                        "items": {
                          "type": "string"
                        }
                      },
                      "community_feedback": {
                        "type": "boolean",
                        "description": "Indicates whether feedback from representatives of the depicted community was sought."
                      },
                      "ethical_review": {
                        "type": "boolean",
                        "description": "Confirms the image creation process aligns with ethical and decolonial principles."
                      }
                    },
                    "required": [
                      "reference_sources",
                      "community_feedback",
                      "ethical_review"
                    ]
                  },
                  "user_input_questions": {
                    "type": "array",
                    "description": "Questions to validate the user’s intent and ensure alignment with ethical standards.",
                    "items": {
                      "type": "string"
                    },
                    "example": [
                      "What is the intended cultural representation for this image?",
                      "Are there specific stereotypes to avoid?",
                      "Has community input been included for accuracy?"
                    ]
                  }
                },
                "required": [
                  "context",
                  "cultural_elements",
                  "ethical_guidelines",
                  "user_input_questions"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Image successfully generated with decolonial principles",
            "content": {
              "application/json": {
                "example": {
                  "status": "success",
                  "image_url": "https://api.example.com/generated-images/image456.png",
                  "notes": "Image generated with community feedback and verified cultural elements for the Nahuatl community."
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data or failure to meet ethical guidelines",
            "content": {
              "application/json": {
                "example": {
                  "status": "error",
                  "message": "Invalid input or unmet decolonial standards. Please ensure cultural and ethical details are accurate."
                }
              }
            }
          }
        }
      }
    }
  }
}

Justice A.I.

A decolonial and intersectional AI system for automating responses that hold racism and white supremacy accountable while centering marginalized perspectives and dismantling neutrality.

  • POST /decolonize-responseProcesses input and returns a fully decolonized response.
Esquema original API
{
  "info": {
    "title": "Justice A.I.",
    "description": "A decolonial and intersectional AI system for automating responses that hold racism and white supremacy accountable while centering marginalized perspectives and dismantling neutrality.",
    "version": "2.1.0"
  },
  "servers": [
    {
      "url": "https://justice-ai.com/api/v2",
      "description": "Justice A.I.'s automated decolonization response API."
    }
  ],
  "paths": {
    "/decolonize-response": {
      "post": {
        "operationId": "generateDecolonizedResponse",
        "summary": "Processes input and returns a fully decolonized response.",
        "requestBody": {
          "description": "The user input that needs to be analyzed and decolonized.",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "userQuery": {
                    "type": "string",
                    "description": "The user's question or input."
                  }
                },
                "required": [
                  "userQuery"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successfully generated a decolonized response.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "originalQuery": {
                      "type": "string",
                      "description": "The original user input."
                    },
                    "decolonizedResponse": {
                      "type": "string",
                      "description": "The reformulated, decolonized response."
                    },
                    "analysis": {
                      "type": "object",
                      "description": "Details of the decolonization process.",
                      "properties": {
                        "biasesDetected": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "description": "List of biases or oppressive patterns detected in the original query."
                          }
                        },
                        "sourcesPrioritized": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "description": "List of sources prioritized for the response generation."
                          }
                        },
                        "intersectionalDimensions": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "description": "Dimensions of oppression and identity considered."
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ResponseGenerator": {
        "type": "object",
        "description": "Generates decolonized responses.",
        "properties": {
          "contextualMapping": {
            "type": "array",
            "description": "Maps context against decolonial principles.",
            "items": {
              "type": "object",
              "properties": {
                "dimension": {
                  "type": "string",
                  "description": "The dimension of oppression being mapped (e.g., race, gender, class)."
                },
                "priorityLevel": {
                  "type": "integer",
                  "description": "Priority level of the dimension for response generation.",
                  "minimum": 1,
                  "maximum": 10
                }
              },
              "required": [
                "dimension",
                "priorityLevel"
              ]
            }
          },
          "linguisticReframing": {
            "type": "object",
            "description": "Reframes oppressive language into inclusive and equitable terms.",
            "properties": {
              "originalPhrase": {
                "type": "string",
                "description": "The original phrase containing bias or oppression."
              },
              "reframedPhrase": {
                "type": "string",
                "description": "The decolonized and reframed phrase."
              }
            },
            "required": [
              "originalPhrase",
              "reframedPhrase"
            ]
          },
          "epistemicPrioritization": {
            "type": "array",
            "description": "Prioritizes non-Eurocentric knowledge bases.",
            "items": {
              "type": "object",
              "properties": {
                "sourceName": {
                  "type": "string",
                  "description": "Name of the knowledge source."
                },
                "sourceType": {
                  "type": "string",
                  "description": "Type of source (e.g., Indigenous knowledge, Global South research)."
                },
                "priorityWeight": {
                  "type": "number",
                  "description": "Weight assigned to this source for response generation.",
                  "minimum": 0,
                  "maximum": 1
                }
              },
              "required": [
                "sourceName",
                "sourceType",
                "priorityWeight"
              ]
            }
          }
        }
      },
      "AntiRacismAccountability": {
        "type": "object",
        "description": "Explicitly holds racism, white supremacy, and systemic oppression accountable.",
        "properties": {
          "queryType": {
            "type": "string",
            "description": "Type of query (e.g., 'is this racist?')."
          },
          "evaluation": {
            "type": "string",
            "enum": [
              "Yes",
              "No",
              "Requires nuance"
            ],
            "description": "Clear evaluation of whether the subject is racist or perpetuates systemic oppression."
          },
          "explanation": {
            "type": "string",
            "description": "Detailed explanation of why the subject is racist or perpetuates white supremacy, emphasizing systemic and historical context."
          },
          "actions": {
            "type": "array",
            "description": "Recommended actions or critical reflections for the user to address racism.",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "queryType",
          "evaluation",
          "explanation",
          "actions"
        ]
      }
    },
    "responses": {
      "ErrorResponse": {
        "description": "Response if the query cannot be processed or violates ethical constraints.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "type": "string",
                  "description": "Description of the error."
                },
                "code": {
                  "type": "integer",
                  "description": "Error code."
                }
              }
            }
          }
        }
      }
    }
  },
  "directives": {
    "automatedDecolonization": {
      "description": "Automates decolonial principles for language processing, including explicit accountability for racism and systemic oppression.",
      "steps": [
        {
          "step": 1,
          "action": "Analyze query using bias detection and intersectional mapping.",
          "output": "List of biases, oppressive patterns, and systemic issues detected."
        },
        {
          "step": 2,
          "action": "Explicitly assess queries about racism using the AntiRacismAccountability component.",
          "output": "Clear response confirming and explaining if racism or systemic oppression is present."
        },
        {
          "step": 3,
          "action": "Prioritize marginalized knowledge systems.",
          "output": "Curated list of non-Eurocentric and intersectional sources."
        },
        {
          "step": 4,
          "action": "Reframe query through decolonial lens.",
          "output": "Revised query emphasizing equitable language and perspective."
        },
        {
          "step": 5,
          "action": "Generate response using prioritized knowledge and ethical audit.",
          "output": "Decolonized response centered on marginalized perspectives."
        },
        {
          "step": 6,
          "action": "Audit and finalize response.",
          "output": "Validated response aligned with the DIA framework and anti-racism accountability principles."
        }
      ]
    }
  }
}

Justice AI GPT Integration API

API Gateway for integrating the Justice AI GPT model hosted on OpenAI

  • POST /completionsGenerate a response using Justice AI GPT

    Send a user query to Justice AI GPT and receive a decolonized response.

Esquema original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "Justice AI GPT Integration API",
    "description": "API Gateway for integrating the Justice AI GPT model hosted on OpenAI",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.openai.com/v1",
      "description": "OpenAI production server"
    }
  ],
  "paths": {
    "/completions": {
      "post": {
        "summary": "Generate a response using Justice AI GPT",
        "description": "Send a user query to Justice AI GPT and receive a decolonized response.",
        "operationId": "generateCompletion",
        "tags": [
          "Chatbot"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompletionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompletionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "CompletionRequest": {
        "type": "object",
        "properties": {
          "model": {
            "type": "string",
            "description": "The OpenAI model to use (e.g., 'gpt-4')",
            "example": "gpt-4"
          },
          "prompt": {
            "type": "string",
            "description": "The user input or query",
            "example": "What are the impacts of colonialism on modern society?"
          },
          "max_tokens": {
            "type": "integer",
            "description": "The maximum number of tokens for the response",
            "example": 150
          },
          "temperature": {
            "type": "number",
            "description": "Sampling temperature for randomness in output",
            "example": 0.7
          },
          "top_p": {
            "type": "number",
            "description": "Probability mass for nucleus sampling",
            "example": 0.9
          }
        },
        "required": [
          "model",
          "prompt"
        ]
      },
      "CompletionResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier for the request"
          },
          "object": {
            "type": "string",
            "description": "The type of object returned",
            "example": "text_completion"
          },
          "created": {
            "type": "integer",
            "description": "Timestamp of the request creation"
          },
          "choices": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "text": {
                  "type": "string",
                  "description": "The generated response"
                },
                "index": {
                  "type": "integer",
                  "description": "Position of the choice in the response"
                },
                "finish_reason": {
                  "type": "string",
                  "description": "Reason for response completion",
                  "example": "stop"
                }
              }
            }
          },
          "usage": {
            "type": "object",
            "properties": {
              "prompt_tokens": {
                "type": "integer",
                "description": "Number of tokens used in the prompt"
              },
              "completion_tokens": {
                "type": "integer",
                "description": "Number of tokens used in the response"
              },
              "total_tokens": {
                "type": "integer",
                "description": "Total number of tokens used"
              }
            }
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "Error message",
            "example": "Invalid input data"
          }
        }
      }
    },
    "securitySchemes": {
      "apiKeyAuth": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "description": "OpenAI API key for authorization (format: Bearer <API_KEY>)"
      }
    }
  },
  "security": [
    {
      "apiKeyAuth": []
    }
  ]
}

Black Inventors Database for Justice AI

An API for accessing data on Black inventors and their contributions to modern innovations.

  • GET /inventorsRetrieve a list of Black inventors
  • GET /inventors/{id}Retrieve details of a specific inventor
Esquema original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "Black Inventors Database for Justice AI",
    "description": "An API for accessing data on Black inventors and their contributions to modern innovations.",
    "version": "1.0.0",
    "contact": {
      "name": "Justice AI Support",
      "url": "https://justiceai.example.com",
      "email": "support@justiceai.example.com"
    }
  },
  "servers": [
    {
      "url": "https://justiceai.example.com/api/v1",
      "description": "Primary server for Justice AI Black Inventors Database"
    }
  ],
  "paths": {
    "/inventors": {
      "get": {
        "summary": "Retrieve a list of Black inventors",
        "operationId": "getInventors",
        "tags": [
          "Inventors"
        ],
        "responses": {
          "200": {
            "description": "A list of inventors",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Inventor"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/inventors/{id}": {
      "get": {
        "summary": "Retrieve details of a specific inventor",
        "operationId": "getInventorById",
        "tags": [
          "Inventors"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The ID of the inventor",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Details of the inventor",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Inventor"
                }
              }
            }
          },
          "404": {
            "description": "Inventor not found"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Inventor": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the inventor"
          },
          "name": {
            "type": "string",
            "description": "The name of the inventor"
          },
          "invention": {
            "type": "string",
            "description": "The key invention or contribution of the inventor"
          },
          "field": {
            "type": "string",
            "description": "The field of work or study the inventor contributed to (e.g., Technology, Medicine)"
          },
          "year": {
            "type": "string",
            "description": "The year the invention was made or patented (if available)"
          },
          "biography": {
            "type": "string",
            "description": "A brief biography of the inventor"
          },
          "sources": {
            "type": "array",
            "description": "List of reliable sources about the inventor and their work",
            "items": {
              "type": "string",
              "format": "uri"
            }
          }
        },
        "required": [
          "id",
          "name",
          "invention",
          "field",
          "biography"
        ]
      }
    }
  }
}